Skip to content

Commit

Permalink
Name all jobs using imperatives. Use consistent order for job attribu…
Browse files Browse the repository at this point in the history
…tes.
  • Loading branch information
sfmig committed Nov 17, 2023
1 parent 0ed53ef commit d89cb3e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
linting:
name: Pre-commit linters
name: Run pre-commit linters
runs-on: ubuntu-latest
steps:
- uses: neuroinformatics-unit/actions/lint@v2
Expand All @@ -22,15 +22,15 @@ jobs:
- uses: neuroinformatics-unit/actions/check_manifest@v2

test:
name: Run tests on ${{ matrix.os }} py${{ matrix.python-version }}
needs: [linting, manifest]
name: ${{ matrix.os }} py${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
# Run all supported Python versions on linux
python-version: ["3.9", "3.10"]
os: [ubuntu-latest]
# Include one windows and macos run
python-version: ["3.9", "3.10"]
# Include one macos run
include:
- os: macos-latest
python-version: "3.10"
Expand All @@ -42,7 +42,7 @@ jobs:
build_sdist_wheels:
name: Build source distribution
needs: [test]
if: github.event_name == 'push' && github.ref_type == 'tag'
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref_type == 'tag'
steps:
- uses: neuroinformatics-unit/actions/build_sdist_wheels@v2

0 comments on commit d89cb3e

Please sign in to comment.