Skip to content

Commit d47ed8c

Browse files
committed
Fix GHA (hopefully)
The pre-commit actions now specifically require Python 3.8 to build the requirements file, so should only be tested there.
1 parent a1495c3 commit d47ed8c

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

.github/workflows/test.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,24 @@ name: Run tests
33
on: [push]
44

55
jobs:
6+
lint:
7+
runs-on: ubuntu-22.04
8+
steps:
9+
- uses: actions/checkout@v4
10+
- name: Set up Python 3.8
11+
uses: actions/setup-python@v5
12+
with:
13+
python-version: "3.8"
14+
- name: Install dependencies
15+
run: pip install -r requirements.txt
16+
- name: Run pre-commit
17+
run: pre-commit run --all-files
18+
619
build:
720
runs-on: ubuntu-22.04
821
strategy:
922
matrix:
1023
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
11-
1224
steps:
1325
- uses: actions/checkout@v4
1426
- name: Set up Python ${{ matrix.python-version }}
@@ -17,8 +29,6 @@ jobs:
1729
python-version: ${{ matrix.python-version }}
1830
- name: Install dependencies
1931
run: pip install -r requirements.txt
20-
- name: Run pre-commit
21-
run: pre-commit run --all-files
2232
- name: Install package
2333
run: pip install .
2434
- name: Run pytest

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
[build-system]
2-
requires = ["setuptools", "wheel", "setuptools-scm"]
2+
requires = ["setuptools", "setuptools-scm"]
3+
build-backend = "setuptools.build_meta"

0 commit comments

Comments
 (0)