Skip to content

Commit

Permalink
full check style before unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed May 17, 2024
1 parent 34f949a commit 801f004
Showing 1 changed file with 17 additions and 21 deletions.
38 changes: 17 additions & 21 deletions .github/workflows/python_actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,14 @@ jobs:
matrix:
include:
- runner: ubuntu-24.04
python-version: "3.12"
python-version: "3.13"
checks: 'tests'

- runner: ubuntu-22.04
python-version: "3.12"
checks: 'full'
coverage: 'coverage'

- runner: ubuntu-20.04
python-version: 3.8
checks: 'full'

- runner: ubuntu-latest
python-version: "3.13"
checks: 'tests'

- runner: ubuntu-latest
python-version: "3.11"
checks: 'tests'
Expand All @@ -53,6 +45,10 @@ jobs:
python-version: 3.9
checks: 'tests'

- runner: ubuntu-20.04
python-version: 3.8
checks: 'full'

- runner: windows-latest
python-version: "3.12"
checks: 'tests'
Expand Down Expand Up @@ -106,18 +102,6 @@ jobs:
- name: Run Install
uses: ./support/actions/run-install

- name: Test with pytest (and coverage)
if: ${{ matrix.checks == 'full' }}
uses: ./support/actions/pytest
env:
SPALLOC_USER: ${{ secrets.SPALLOC_USER }}
SPALLOC_PASSWORD: ${{ secrets.SPALLOC_PASSWORD }}
with:
tests: unittests
coverage: ${{ matrix.coverage == 'coverage' }}
cover-packages: spinnman, spinnman_integration_tests
coveralls-token: ${{ secrets.GITHUB_TOKEN }}

- name: Simple pytest
if: ${{ matrix.checks == 'tests'}}
env:
Expand All @@ -144,6 +128,18 @@ jobs:
if: ${{ matrix.checks == 'full' }}
run: mypy spinnman

- name: Test with pytest (and coverage)
if: ${{ matrix.checks == 'full' }}
uses: ./support/actions/pytest
env:
SPALLOC_USER: ${{ secrets.SPALLOC_USER }}
SPALLOC_PASSWORD: ${{ secrets.SPALLOC_PASSWORD }}
with:
tests: unittests
coverage: ${{ matrix.coverage == 'coverage' }}
cover-packages: spinnman, spinnman_integration_tests
coveralls-token: ${{ secrets.GITHUB_TOKEN }}

- name: Run rat copyright enforcement
if: ${{ matrix.checks == 'validate' }}
uses: ./support/actions/check-copyrights
Expand Down

0 comments on commit 801f004

Please sign in to comment.