Skip to content

Commit

Permalink
Fix GHA (hopefully)
Browse files Browse the repository at this point in the history
The pre-commit actions now specifically require Python 3.8 to build the
requirements file, so should only be tested there.
  • Loading branch information
bmerry committed Mar 23, 2024
1 parent a1495c3 commit d47ed8c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/test.yml
Expand Up @@ -3,12 +3,24 @@ name: Run tests
on: [push]

jobs:
lint:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.8
uses: actions/setup-python@v5
with:
python-version: "3.8"
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run pre-commit
run: pre-commit run --all-files

build:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -17,8 +29,6 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run pre-commit
run: pre-commit run --all-files
- name: Install package
run: pip install .
- name: Run pytest
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
@@ -1,2 +1,3 @@
[build-system]
requires = ["setuptools", "wheel", "setuptools-scm"]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"

0 comments on commit d47ed8c

Please sign in to comment.