Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#158: Optimise CI linting #159

Merged
merged 2 commits into from
Feb 11, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 18 additions & 5 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,24 @@ permissions:
contents: read

jobs:
linting:
name: Linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: "3.12"

- name: Install required packages
run: python -m pip install --upgrade tox

- name: Run linters
run: tox -e lint


tests:
name: Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
Expand Down Expand Up @@ -43,11 +61,6 @@ jobs:
ENV_PREFIX=$(tr -C -d "0-9" <<< "${{ matrix.python-version }}")
TOXENV=$(tox --listenvs | grep "^py$ENV_PREFIX" | tr '\n' ',') tox

- name: Run linters
if: ${{ matrix.python-version == '3.12' }}
run: |
tox -e lint

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
Expand Down
Loading