Skip to content

Commit 3a73b17

Browse files
committed
Split build job
1 parent f5dbeba commit 3a73b17

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pyproject.toml export-subst

.github/workflows/lint.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,22 @@ jobs:
2121
with:
2222
version: "~= 24.0"
2323

24-
linting:
24+
build:
25+
runs-on: ubuntu-latest
26+
strategy:
27+
matrix:
28+
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
29+
steps:
30+
- uses: actions/checkout@v4
31+
with:
32+
fetch-depth: 0 # Needed for versioningit to find the repo version
33+
- uses: actions/setup-python@v5
34+
with:
35+
python-version: ${{ matrix.python-version }}
36+
- name: Build python package
37+
run: python -m build
38+
39+
formatting:
2540
runs-on: ubuntu-latest
2641
strategy:
2742
matrix:
@@ -50,6 +65,3 @@ jobs:
5065

5166
- name: Run isort
5267
run : isort --profile black .
53-
54-
- name: Build package
55-
run: python -m build .

0 commit comments

Comments
 (0)