Skip to content

Commit 934464f

Browse files
committed
use SupportScripts python_checks
1 parent 98aed42 commit 934464f

File tree

1 file changed

+15
-60
lines changed

1 file changed

+15
-60
lines changed

.github/workflows/python_actions.yml

+15-60
Original file line numberDiff line numberDiff line change
@@ -17,66 +17,21 @@
1717

1818
name: Python Actions
1919
on: [push]
20-
jobs:
21-
build:
22-
runs-on: ubuntu-latest
23-
strategy:
24-
matrix:
25-
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]
26-
27-
steps:
28-
- name: Checkout
29-
uses: actions/checkout@v4
30-
- name: Checkout SupportScripts
31-
uses: actions/checkout@v4
32-
with:
33-
repository: SpiNNakerManchester/SupportScripts
34-
path: support
3520

36-
- name: Set up Python ${{ matrix.python-version }}
37-
uses: actions/setup-python@v5
38-
with:
39-
python-version: ${{ matrix.python-version }}
40-
- name: Install pip, etc
41-
uses: ./support/actions/python-tools
42-
- name: Install Spinnaker Dependencies
43-
uses: ./support/actions/install-spinn-deps
44-
with:
45-
repositories: >
21+
jobs:
22+
call:
23+
uses: SpiNNakerManchester/SupportScripts/.github/workflows/python_checks.yml@main
24+
with:
25+
dependencies: >
4626
SpiNNUtils SpiNNMachine SpiNNMan PACMAN spalloc
4727
SpiNNFrontEndCommon sPyNNaker
48-
install: true
49-
50-
- name: Setup PyNN
51-
uses: ./support/actions/pynn-setup
52-
- name: Install matplotlib
53-
uses: ./support/actions/install-matplotlib
54-
55-
- name: Lint with flake8
56-
run: flake8 examples balanced_random learning sudoku synfire
57-
58-
- name: Lint with pylint
59-
uses: ./support/actions/pylint
60-
with:
61-
package: examples balanced_random learning sudoku synfire
62-
exitcheck: 39
63-
64-
validate:
65-
runs-on: ubuntu-latest
66-
steps:
67-
- name: Checkout
68-
uses: actions/checkout@v4
69-
- name: Checkout SupportScripts
70-
uses: actions/checkout@v4
71-
with:
72-
repository: SpiNNakerManchester/SupportScripts
73-
path: support
74-
- name: Run rat copyright enforcement
75-
if: matrix.python-version == 3.12
76-
uses: ./support/actions/check-copyrights
77-
with:
78-
config_file: rat_asl20.xml
79-
80-
- name: Validate CITATION.cff
81-
if: matrix.python-version == 3.12
82-
uses: dieghernan/cff-validator@main
28+
ubuntu_packages: graphviz
29+
test_directories: unittests
30+
coverage-package: mcmc
31+
flake8-packages: examples balanced_random learning sudoku synfire
32+
pylint-packages: examples balanced_random learning sudoku synfire
33+
pylint_exitcheck: 39
34+
# Examples are not types to keep them easier to read
35+
mypy-packages:
36+
check_prereleases: false
37+
run_sphinx: false

0 commit comments

Comments
 (0)