Skip to content

Commit a25f3b4

Browse files
committed
ci: add steps for testing build
1 parent a64bab4 commit a25f3b4

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- uses: actions/checkout@v6
2121

2222
- uses: actions/setup-python@v6
23+
name: Set up Python
2324
with:
2425
python-version: '3.10'
2526

.github/workflows/test.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,22 @@ jobs:
2525
run: pip install .
2626
- name: Test
2727
run: pytest -svv --cov=strkit --cov-branch
28+
29+
test-build:
30+
runs-on: ubuntu-latest
31+
strategy:
32+
matrix:
33+
python-version: [ "3.10", "3.11", "3.12", "3.13" ]
34+
35+
steps:
36+
- uses: actions/checkout@v6
37+
- uses: actions/setup-python@v6
38+
name: Set up Python
39+
with:
40+
python-version: ${{ matrix.python-version }}
41+
- name: Install pypa/build
42+
run: python -m pip install build --user
43+
- name: Update setuptools
44+
run: python -m pip install -U setuptools --user
45+
- name: Build
46+
run: python -m build --sdist --wheel --outdir dist/ .

0 commit comments

Comments
 (0)