Skip to content

Commit

Permalink
ci: split pre-commit to its own job; test python 3.11 too
Browse files Browse the repository at this point in the history
  • Loading branch information
tazlin committed Feb 21, 2024
1 parent 9f44ec9 commit 0fd13e2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/maintests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,18 @@ on:
- 'requirements.dev.txt'
- 'requirements.docs.txt'
jobs:
build:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run pre-commit
uses: pre-commit/action@v3.0.0

unit-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.10"]
python: ["3.10", "3.11"]

steps:
- uses: actions/checkout@v3
Expand All @@ -33,7 +40,5 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install --upgrade -r requirements.dev.txt
- name: Run pre-commit
uses: pre-commit/action@v3.0.0
- name: Run unit tests
run: tox -e tests-no-api-calls
13 changes: 9 additions & 4 deletions .github/workflows/prtests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,18 @@ on:
- 'requirements.dev.txt'
- 'requirements.docs.txt'
jobs:
build:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run pre-commit
uses: pre-commit/action@v3.0.0

unit-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.10"]
python: ["3.10", "3.11"]

steps:
- uses: actions/checkout@v3
Expand All @@ -38,7 +45,5 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install --upgrade -r requirements.dev.txt
- name: Run pre-commit
uses: pre-commit/action@v3.0.0
- name: Run unit tests
run: tox -e tests-no-api-calls

0 comments on commit 0fd13e2

Please sign in to comment.