Skip to content

Commit

Permalink
Split GHA lint and test jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
nhairs committed Mar 24, 2024
1 parent d4d0b3d commit 7c7b72e
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,27 @@ on:
- main

jobs:
lint:
name: "Python Lint"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox
- name: Lint with tox
run: tox -e lint

test:
name: "Python ${{matrix.python-version}} ${{ matrix.os }}"
name: "Python Test ${{matrix.python-version}} ${{ matrix.os }}"
needs: [lint]
runs-on: "${{ matrix.os }}"
strategy:
matrix:
Expand Down Expand Up @@ -45,7 +64,3 @@ jobs:
- name: Test with tox
run: tox

- name: Lint with tox
run: tox -e lint
if: "${{ matrix.python-version == '3.12' && matrix.os == 'ubuntu-latest' }}"

0 comments on commit 7c7b72e

Please sign in to comment.