Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

actions cleanup. #82

Merged
merged 34 commits into from
Feb 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
b8c82f5
action-dash
Christian-B Feb 19, 2025
af0db62
pip-installs
Christian-B Feb 19, 2025
f357688
ubuntu-packages
Christian-B Feb 19, 2025
1a49776
test-directories
Christian-B Feb 19, 2025
99dec01
check-prereleases
Christian-B Feb 19, 2025
35e09c7
cfg-file
Christian-B Feb 19, 2025
89019fa
pylint-exitcheck
Christian-B Feb 19, 2025
4026d41
mypy-full-packages
Christian-B Feb 19, 2025
e5d1f6f
rat-config-file
Christian-B Feb 19, 2025
0e87f9b
run_sphinx
Christian-B Feb 19, 2025
fc45380
sphinx-directory
Christian-B Feb 19, 2025
a5e5063
run-cff-validator
Christian-B Feb 19, 2025
6241af7
config-file
Christian-B Feb 19, 2025
971915e
uses: SpiNNakerManchester/SupportScripts/actions/apt-get-install@acti…
Christian-B Feb 19, 2025
18f1d02
remove indirect cff-validator action
Christian-B Feb 19, 2025
b66fe22
uses: SpiNNakerManchester/SupportScripts/actions/check-copyrights@act…
Christian-B Feb 19, 2025
2aa2203
remove unused action
Christian-B Feb 19, 2025
2dd798b
remove unused action
Christian-B Feb 19, 2025
5e26f2d
uses: SpiNNakerManchester/SupportScripts/actions/apt-get-install@main
Christian-B Feb 19, 2025
34d006d
dash in input names
Christian-B Feb 19, 2025
7a5245c
checkout-dependencies
Christian-B Feb 19, 2025
1e88b56
install-dependencies
Christian-B Feb 19, 2025
0387c26
install-check-tools
Christian-B Feb 19, 2025
7d9fd94
uses: SpiNNakerManchester/SupportScripts/actions/pylint@main
Christian-B Feb 19, 2025
1ef6720
uses: SpiNNakerManchester/SupportScripts/actions/pytest@action-dash
Christian-B Feb 19, 2025
05438c4
type-overrides
Christian-B Feb 19, 2025
bef243a
uses: SpiNNakerManchester/SupportScripts/actions/python-tools@main
Christian-B Feb 19, 2025
b9dbcb1
uses: SpiNNakerManchester/SupportScripts/actions/run-install@action-dash
Christian-B Feb 19, 2025
4e6820a
extras-require
Christian-B Feb 19, 2025
5aecc86
removed unused validate
Christian-B Feb 19, 2025
ad4ca29
removed unused test-and-check
Christian-B Feb 19, 2025
1155bd9
removed unused validate-xml
Christian-B Feb 19, 2025
02fec7a
merged in main
Christian-B Feb 20, 2025
117d2ff
use main branch for actions
Christian-B Feb 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 48 additions & 48 deletions .github/workflows/python_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,28 +24,28 @@ on:
The list of SpiNNaker dependencies to check out. Space-separated
required: true
type: string
install_module:
install-module:
description: >
Flag to say if the current model should be installed should be installed
Excepted values are true of false
required: false
type: string
default: 'true'
pip_installs:
pip-installs:
description: >
Extra things to pip install when package not installed
Mainly used when install_module is false
Mainly used when install-module is false
required: false
type: string
default: ''
ubuntu_packages:
ubuntu-packages:
description: >
The names of the ubuntu packages to install
These are NOT installed on none linux workflows
required: false
type: string
default: ''
test_directories:
test-directories:
description: >
The list of directories to run pytest on. Space-seperated
required: true
Expand All @@ -58,12 +58,12 @@ on:
description: The names of the Python packages to run flake8 on.
required: true
type: string
check_prereleases:
check-prereleases:
description: Flag to say if prereleases python versions should be checked
required: false
type: string
default: 'false'
cfg_file:
cfg-file:
description: >
Name of the cfg file to be created
excluding the ~./ start and .cfg end
Expand All @@ -88,12 +88,12 @@ on:
required: false
type: string
default: "R"
pylint_exitcheck:
pylint-exitcheck:
description: The combined results code to fail on
required: false
type: string
default: "31" # Action fails on any message
mypy-full_packages:
mypy-full-packages:
description: >
The names of the Python packages to run full mypy on.
These are run in --disallow-untyped-defs mode
Expand All @@ -107,7 +107,7 @@ on:
required: false
type: string
default: ''
rat_config_file:
rat-config-file:
description: >
Which xml config file to use for rat.
Supported options are:
Expand All @@ -117,17 +117,17 @@ on:
required: false
type: string
default: "rat_asl20.xml"
run_sphinx:
run-sphinx:
description: Flag to say if sphinx should be run
required: false
type: string
default: true
sphinx_directory:
sphinx-directory:
description: Where to run Sphinx
required: false
type: string
default: "doc/source"
run_cff-validator:
run-cff-validator:
description: Flag to say if cff-validator should be run
required: false
type: string
Expand All @@ -154,26 +154,26 @@ jobs:
uses: SpiNNakerManchester/SupportScripts/actions/prepare@main
with:
python-version: ${{ matrix.python-version }}
install_dependencies: ${{ inputs.dependencies }}
install_module: ${{ inputs.install_module }}
install_check_tools: true
ubuntu_packages: ${{ inputs.ubuntu_packages }}
cfg_file: ${{ inputs.cfg_file }}
pip_installs: ${{ inputs.pip_installs }}
install-dependencies: ${{ inputs.dependencies }}
install-module: ${{ inputs.install-module }}
install-check-tools: true
ubuntu-packages: ${{ inputs.ubuntu-packages }}
cfg-file: ${{ inputs.cfg-file }}
pip-installs: ${{ inputs.pip-installs }}

- name: Run rat copyright enforcement
uses: SpiNNakerManchester/SupportScripts/actions/check-copyrights@main
with:
config_file: ${{ inputs.rat_config_file }}
config-file: ${{ inputs.rat-config-file }}

- name: Build documentation with sphinx
if: ${{ inputs.run_sphinx == 'true' }}
if: ${{ inputs.run-sphinx == 'true' }}
uses: SpiNNakerManchester/SupportScripts/actions/sphinx@main
with:
directory: ${{ inputs.sphinx_directory }}
directory: ${{ inputs.sphinx-directory }}

- name: Validate CITATION.cff
if: ${{ inputs.run_cff-validator == 'true' }}
if: ${{ inputs.run-cff-validator == 'true' }}
uses: dieghernan/cff-validator@main
with:
install-r: true
Expand All @@ -186,7 +186,7 @@ jobs:
with:
package: ${{ inputs.pylint-packages }}
disable: ${{ inputs.pylint-disable }}
exitcheck: ${{ inputs.pylint_exitcheck }}
exitcheck: ${{ inputs.pylint-exitcheck }}
rcfile: ${{ inputs.rcfile }}
language: en_GB

Expand All @@ -199,10 +199,10 @@ jobs:
run: mypy --python-version ${{ matrix.python-version }} --disallow-untyped-defs ${{ inputs.mypy-full-packages }}

- name: Test with pytest
if: ${{ inputs.test_directories != ''}}
if: ${{ inputs.test-directories != ''}}
uses: SpiNNakerManchester/SupportScripts/actions/pytest@main
with:
tests: ${{ inputs.test_directories }}
tests: ${{ inputs.test-directories }}
coverage: ${{ matrix.coverage == 'coverage' && inputs.coverage-package != '' }}
cover-packages: ${{ inputs.coverage-package }}
coveralls-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -237,44 +237,44 @@ jobs:
timeout-minutes: 20
steps:
- name: Prepare
if: ${{ matrix.python-version != env.PRERELEASE || inputs.check_prereleases == 'true' }}
if: ${{ matrix.python-version != env.PRERELEASE || inputs.check-prereleases == 'true' }}
uses: SpiNNakerManchester/SupportScripts/actions/prepare@main
with:
python-version: ${{ matrix.python-version }}
install_dependencies: ${{ inputs.dependencies }}
install_module: ${{ inputs.install_module }}
install_check_tools: true
ubuntu_packages: ${{ inputs.ubuntu_packages }}
cfg_file: ${{ inputs.cfg_file }}
pip_installs: ${{ inputs.pip_installs }}
install-dependencies: ${{ inputs.dependencies }}
install-module: ${{ inputs.install-module }}
install-check-tools: true
ubuntu-packages: ${{ inputs.ubuntu-packages }}
cfg-file: ${{ inputs.cfg-file }}
pip-installs: ${{ inputs.pip-installs }}

- name: Lint with flake8
if: ${{ matrix.python-version != env.PRERELEASE || inputs.check_prereleases == 'true' }}
if: ${{ matrix.python-version != env.PRERELEASE || inputs.check-prereleases == 'true' }}
run: flake8 ${{ inputs.flake8-packages }}

- name: Lint with pylint
if: ${{ matrix.python-version != env.PRERELEASE || inputs.check_prereleases == 'true' }}
if: ${{ matrix.python-version != env.PRERELEASE || inputs.check-prereleases == 'true' }}
uses: SpiNNakerManchester/SupportScripts/actions/pylint@main
with:
package: ${{ inputs.pylint-packages }}
disable: ${{ inputs.pylint-disable }}
exitcheck: ${{ inputs.pylint_exitcheck }}
exitcheck: ${{ inputs.pylint-exitcheck }}
rcfile: ${{ inputs.rcfile }}
language: en_GB

- name: Lint with mypy
if: ${{ (matrix.python-version != env.PRERELEASE || inputs.check_prereleases == 'true') && inputs.mypy-packages != '' }}
if: ${{ (matrix.python-version != env.PRERELEASE || inputs.check-prereleases == 'true') && inputs.mypy-packages != '' }}
run: mypy --python-version ${{ matrix.python-version }} ${{ inputs.mypy-packages }}

- name: Lint with mypy using disallow-untyped-def
if: ${{ (matrix.python-version != env.PRERELEASE || inputs.check_prereleases == 'true') && inputs.mypy-full-packages != '' }}
if: ${{ (matrix.python-version != env.PRERELEASE || inputs.check-prereleases == 'true') && inputs.mypy-full-packages != '' }}
run: mypy --python-version ${{ matrix.python-version }} --disallow-untyped-defs ${{ inputs.mypy-full-packages }}

- name: Test with pytest
if: ${{ (matrix.python-version != env.PRERELEASE || inputs.check_prereleases == 'true') && inputs.test_directories != ''}}
if: ${{ (matrix.python-version != env.PRERELEASE || inputs.check-prereleases == 'true') && inputs.test-directories != ''}}
uses: SpiNNakerManchester/SupportScripts/actions/pytest@main
with:
tests: ${{ inputs.test_directories }}
tests: ${{ inputs.test-directories }}
env:
SPALLOC_USER: ${{ secrets.SPALLOC_USER }}
SPALLOC_PASSWORD: ${{ secrets.SPALLOC_PASSWORD }}
Expand Down Expand Up @@ -309,18 +309,18 @@ jobs:
uses: SpiNNakerManchester/SupportScripts/actions/prepare@main
with:
python-version: ${{ matrix.python-version }}
install_dependencies: ${{ inputs.dependencies }}
install_module: ${{ inputs.install_module }}
install_check_tools: false
# inputs.ubuntu_packages NOT installed!
cfg_file: ${{ inputs.cfg_file }}
pip_installs: ${{ inputs.pip_installs }}
install-dependencies: ${{ inputs.dependencies }}
install-module: ${{ inputs.install-module }}
install-check-tools: false
# inputs.ubuntu-packages NOT installed!
cfg-file: ${{ inputs.cfg-file }}
pip-installs: ${{ inputs.pip-installs }}

- name: Test with pytest
if: ${{ inputs.test_directories != ''}}
if: ${{ inputs.test-directories != ''}}
env:
SPALLOC_USER: ${{ secrets.SPALLOC_USER }}
SPALLOC_PASSWORD: ${{ secrets.SPALLOC_PASSWORD }}
# Tests using ping won't work in Github Actions because of system config
SKIP_PING_TESTS: true
run: pytest ${{ inputs.test_directories }}
run: pytest ${{ inputs.test-directories }}
31 changes: 0 additions & 31 deletions .github/workflows/run_rat.yml

This file was deleted.

26 changes: 0 additions & 26 deletions actions/cff-validator/action.yml

This file was deleted.

4 changes: 2 additions & 2 deletions actions/check-copyrights/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ inputs:
required: false
default: https://www.apache.org/dyn/closer.cgi?action=download&filename=
# Another alternative: https://www.mirrorservice.org/sites/ftp.apache.org/
config_file:
config-file:
description: "Which xml config file to use.
Supported options are:
'rat.xml' all license acceptable to rat
Expand All @@ -49,7 +49,7 @@ runs:
shell: bash
env:
SUPPORT_DIR: ${{ github.action_path }}
CFG: ${{ github.action_path }}/${{ inputs.config_file }}
CFG: ${{ github.action_path }}/${{ inputs.config-file }}
LIB: ${{ github.action_path }}/apache-rat-${{ inputs.version }}
branding:
icon: search
Expand Down
67 changes: 0 additions & 67 deletions actions/checkout-spinn-deps/action.yml

This file was deleted.

Loading