Skip to content

Commit

Permalink
ci(github): split out pytest runs into version specific jobs
Browse files Browse the repository at this point in the history
This adds 3 new github actions jobs that will run on PRs: py38, py310,
and py312. Now the pytest jobs and the linting jobs are separate.
  • Loading branch information
a-dubs committed Feb 26, 2025
1 parent 69ecbef commit eed5c17
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,42 @@ concurrency:
cancel-in-progress: true

jobs:
tox-defaults:
linting:
runs-on: ubuntu-24.04
steps:
- name: Install dependencies
run: sudo DEBIAN_FRONTEND=noninteractive apt-get -qy install tox
- name: Git checkout
uses: actions/checkout@v4
- name: Run ruff and mypy checks
run: tox -e ruff,mypy
py38:
runs-on: ubuntu-20.04
steps:
- name: Install dependencies
run: sudo DEBIAN_FRONTEND=noninteractive apt-get -qy install tox
- name: Git checkout
uses: actions/checkout@v4
- name: Run tox
run: tox -e py38
py310:
runs-on: ubuntu-22.04
steps:
- name: Install dependencies
run: sudo DEBIAN_FRONTEND=noninteractive apt-get -qy install tox
- name: Git checkout
uses: actions/checkout@v4
- name: Run tox
run: tox -e py310
py312:
runs-on: ubuntu-24.04
steps:
- name: Install dependencies
run: sudo DEBIAN_FRONTEND=noninteractive apt-get -qy install tox
- name: Git checkout
uses: actions/checkout@v4
- name: Run tox
run: tox
run: tox -e py312
docs:
runs-on: ubuntu-24.04
steps:
Expand Down

0 comments on commit eed5c17

Please sign in to comment.