Skip to content

Commit

Permalink
allow-prereleases
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed May 28, 2024
1 parent cba5d7f commit 0d55ac9
Showing 1 changed file with 0 additions and 149 deletions.
149 changes: 0 additions & 149 deletions .github/workflows/python_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,87 +41,6 @@ on:
type: string

jobs:
validate:
# Everything as checks but do validation steps first
strategy:
matrix:
include:
- runner: ubuntu-latest
python-version: "3.12"
checks: 'validate'
runs-on: ${{ matrix.runner }}
timeout-minutes: 20

steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Checkout
uses: actions/checkout@v4

- name: Checkout SupportScripts
uses: actions/checkout@v4
with:
repository: SpiNNakerManchester/SupportScripts
path: support

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

- name: Install mypy
run: pip install mypy

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

- name: Run Install
uses: ./support/actions/run-install

- name: Run rat copyright enforcement
uses: ./support/actions/check-copyrights
with:
config_file: rat_asl20.xml

- name: Build documentation with sphinx
uses: ./support/actions/sphinx
with:
directory: doc/source

- name: Validate CITATION.cff
uses: dieghernan/cff-validator@main

- name: Lint with flake8
run: flake8 ${{ inputs.flake8-packages }}

- name: Lint with pylint
uses: ./support/actions/pylint
with:
package: ${{ inputs.base-package }}
exitcheck: 31 # Action fails on any message
language: en_GB
rcfile: global_strict

- name: Lint with mypy
run: mypy ${{ inputs.base-package }}

- name: Test with pytest
uses: ./support/actions/pytest
with:
tests: ${{ inputs.test_directories }}
coverage: ${{ matrix.coverage == 'coverage' }}
cover-packages: ${{ inputs.base-package }}
coveralls-token: ${{ secrets.GITHUB_TOKEN }}
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

checks:
# Everything as tests but do validation steps first
strategy:
Expand All @@ -131,19 +50,6 @@ jobs:
- runner: ubuntu-24.04
python-version: "3.13"

- runner: ubuntu-latest
python-version: "3.11"
coverage: 'coverage'

- runner: ubuntu-latest
python-version: "3.10"

- runner: ubuntu-22.04
python-version: 3.9

- runner: ubuntu-20.04
python-version: 3.8

runs-on: ${{ matrix.runner }}
timeout-minutes: 20

Expand Down Expand Up @@ -204,58 +110,3 @@ jobs:
SPALLOC_PASSWORD: ${{ secrets.SPALLOC_PASSWORD }}
# Tests using ping won't work in Github Actions because of system config
SKIP_PING_TESTS: true

tests:
strategy:
matrix:
include:
- runner: windows-latest
python-version: "3.12"
checks: 'tests'

- runner: windows-2019
python-version: 3.8
checks: 'tests'

- runner: macos-latest
python-version: "3.12"
checks: 'tests'

- runner: macos-11
python-version: 3.8
checks: 'tests'

runs-on: ${{ matrix.runner }}
timeout-minutes: 20

steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Checkout
uses: actions/checkout@v4

- name: Checkout SupportScripts
uses: actions/checkout@v4
with:
repository: SpiNNakerManchester/SupportScripts
path: support

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

- name: Run Install
uses: ./support/actions/run-install

- name: Test with pytest
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 }}

0 comments on commit 0d55ac9

Please sign in to comment.