Skip to content
Merged
Changes from all commits
Commits
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
18 changes: 15 additions & 3 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,18 @@ on:
- "main"

jobs:
settings:
runs-on: "ubuntu-latest"
name: "Define workflow settings"
outputs:
default-python-version: "3.12"
steps:
- name: "Define settings"
run: ""

run-tests-and-coverage:
name: "Run pytest with coverage."
needs: ["settings"]
runs-on: "${{ matrix.os }}"
strategy:
fail-fast: false
Expand All @@ -30,6 +40,7 @@ jobs:
- "3.11"
- "3.12"
- "3.13"
- "3.14"

steps:
- name: "Repo checkout"
Expand Down Expand Up @@ -59,7 +70,7 @@ jobs:

coverage-compile:
name: "Compile coverage reports."
needs: "run-tests-and-coverage"
needs: ["settings", "run-tests-and-coverage"]
runs-on: "ubuntu-latest"
steps:
- name: "Repo checkout"
Expand All @@ -68,7 +79,7 @@ jobs:
- name: "Set up Python"
uses: "actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b"
with:
python-version: "3.12"
python-version: "${{ needs.settings.outputs.default-python-version }}"

- name: "Install nox"
run: |
Expand All @@ -89,6 +100,7 @@ jobs:

linting:
name: "Check linting and formatting requirements"
needs: ["settings"]
runs-on: "ubuntu-latest"
steps:
- name: "Repo checkout"
Expand All @@ -97,7 +109,7 @@ jobs:
- name: "Set up Python"
uses: "actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b"
with:
python-version: "3.12"
python-version: "${{ needs.settings.outputs.default-python-version }}"

- name: "Install nox"
run: |
Expand Down