Skip to content

Commit

Permalink
test and check composite action
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed May 17, 2024
1 parent 2a8be42 commit ba75f19
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 78 deletions.
51 changes: 0 additions & 51 deletions .github/workflows/data.yml

This file was deleted.

33 changes: 6 additions & 27 deletions .github/workflows/python_actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,39 +38,18 @@ jobs:
repository: SpiNNakerManchester/SupportScripts
path: support

- name: Shared preparation actions
- name: Preparation actions
uses: ./support/actions/prepare
with:
python-version: ${{ matrix.python-version }}
dependencies:

- name: Install pip, etc.
uses: ./support/actions/python-tools
- name: Install mypy
run: pip install mypy

- name: Test with pytest
uses: ./support/actions/pytest
- name: Unittests and style checks
uses: ./support/actions/test-and-check
with:
tests: unittests
coverage: ${{ matrix.python-version == 3.12 }}
cover-packages: ${{ env.ROOT_PKG }}
coveralls-token: ${{ secrets.GITHUB_TOKEN }}
env:
# Tests using ping won't work in Github Actions because of system config
SKIP_PING_TESTS: true

- name: Lint with flake8
run: flake8 $ROOT_PKG unittests
- name: Lint with pylint
uses: ./support/actions/pylint
with:
package: ${{ env.ROOT_PKG }}
exitcheck: 31 # Action fails on any message
language: en_GB
rcfile: global_strict
- name: Lint with mypy
run: mypy $ROOT_PKG
python-version: ${{ matrix.python-version }}
cover-packages: $ROOT_PKG
pylint_package: $ROOT_PKG unittests

validate:
runs-on: ubuntu-latest
Expand Down

0 comments on commit ba75f19

Please sign in to comment.