Skip to content

Commit

Permalink
./actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed May 29, 2024
1 parent 25e7632 commit 3b738fd
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/python_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,38 +79,38 @@ jobs:
uses: actions/checkout@v4

- name: Install pip, etc
uses: SpiNNakerManchester/SupportScripts/actions/python-tools@nested
uses: .actions/python-tools

- name: Install mypy
run: pip install mypy

- name: Install Spinnaker Dependencies
uses: SpiNNakerManchester/SupportScripts/actions/install-spinn-deps@main
uses: ./actions/install-spinn-deps
with:
repositories: ${{ inputs.dependencies }}
install: true

- name: Run Install
uses: SpiNNakerManchester/SupportScripts/actions/run-install@main
uses: ./actions/run-install

- name: Setup PyNN
if: ${{ inputs.cfg_file == 'spynnaker' }}
uses: SpiNNakerManchester/SupportScripts/actions/pynn-setup@main
uses: ./actions/pynn-setup

- name: Create a spynnaker.cfg
if: ${{ inputs.cfg_file != '' }}
uses: SpiNNakerManchester/SupportScripts/actions/configure-spynnaker@nested
uses: ./actions/configure-spynnaker
with:
board-address: spinn-4.cs.man.ac.
cfg_file: ${{ inputs.cfg_file }}

- name: Run rat copyright enforcement
uses: SpiNNakerManchester/SupportScripts/actions/check-copyrights@main
uses: .actions/check-copyrights
with:
config_file: rat_asl20.xml

- name: Build documentation with sphinx
uses: SpiNNakerManchester/SupportScripts/actions/sphinx@main
uses: ./actions/sphinx
with:
directory: doc/source

Expand All @@ -121,7 +121,7 @@ jobs:
run: flake8 ${{ inputs.flake8-packages }}

- name: Lint with pylint
uses: SpiNNakerManchester/SupportScripts/actions/pylint@main
uses: .actions/pylint
with:
package: ${{ inputs.base-package }}
exitcheck: 31 # Action fails on any message
Expand Down Expand Up @@ -182,30 +182,30 @@ jobs:

- name: Install pip, etc
if: ${{ matrix.python-version != env.PRERELEASE || inputs.check_prereleases == 'true' }}
uses: SpiNNakerManchester/SupportScripts/actions/python-tools@main
uses: ./actions/python-tools

- name: Install mypy
if: ${{ matrix.python-version != env.PRERELEASE || inputs.check_prereleases == 'true' }}
run: pip install mypy

- name: Install Spinnaker Dependencies
if: ${{ matrix.python-version != env.PRERELEASE || inputs.check_prereleases == 'true' }}
uses: SpiNNakerManchester/SupportScripts/actions/install-spinn-deps@main
uses: ./actions/install-spinn-deps
with:
repositories: ${{ inputs.dependencies }}
install: true

- name: Run Install
if: ${{ matrix.python-version != env.PRERELEASE || inputs.check_prereleases == 'true' }}
uses: SpiNNakerManchester/SupportScripts/actions/run-install@main
uses: ./actions/run-install

- name: Setup PyNN
if: ${{ (matrix.python-version != env.PRERELEASE || inputs.check_prereleases == 'true') && inputs.cfg_file == 'spynnaker' }}
uses: SpiNNakerManchester/SupportScripts/actions/pynn-setup@main
uses: ./actions/pynn-setup

- name: Create a spynnaker.cfg
if: ${{ (matrix.python-version != env.PRERELEASE || inputs.check_prereleases == 'true') && inputs.cfg_file != '' }}
uses: SpiNNakerManchester/SupportScripts/actions/configure-spynnaker@nested
uses: ./actions/configure-spynnaker
with:
board-address: spinn-4.cs.man.ac.
cfg_file: ${{ inputs.cfg_file }}
Expand All @@ -216,7 +216,7 @@ jobs:

- name: Lint with pylint
if: ${{ matrix.python-version != env.PRERELEASE || inputs.check_prereleases == 'true' }}
uses: SpiNNakerManchester/SupportScripts/actions/pylint@main
uses: ./actions/pylint
with:
package: ${{ inputs.base-package }}
exitcheck: 31 # Action fails on any message
Expand All @@ -229,7 +229,7 @@ jobs:

- name: Test with pytest
if: ${{ matrix.python-version != env.PRERELEASE || inputs.check_prereleases == 'true' }}
uses: SpiNNakerManchester/SupportScripts/actions/pytest@main
uses: ./actions/pytest
with:
tests: ${{ inputs.test_directories }}
coverage: ${{ matrix.coverage == 'coverage' }}
Expand Down Expand Up @@ -274,21 +274,21 @@ jobs:
uses: actions/checkout@v4

- name: Install Spinnaker Dependencies
uses: SpiNNakerManchester/SupportScripts/actions/install-spinn-deps@main
uses: .actions/install-spinn-deps
with:
repositories: ${{ inputs.dependencies }}
install: true

- name: Run Install
uses: SpiNNakerManchester/SupportScripts/actions/run-install@main
uses: .actions/run-install

- name: Setup PyNN
if: ${{ inputs.cfg_file == 'spynnaker' }}
uses: SpiNNakerManchester/SupportScripts/actions/pynn-setup@main
uses: ./actions/pynn-setup

- name: Create a spynnaker.cfg
if: ${{ inputs.cfg_file != '' }}
uses: SpiNNakerManchester/SupportScripts/actions/configure-spynnaker@nested
uses: ./actions/configure-spynnaker
with:
board-address: spinn-4.cs.man.ac.
cfg_file: ${{ inputs.cfg_file }}
Expand Down

0 comments on commit 3b738fd

Please sign in to comment.