Skip to content

Commit 8d0842f

Browse files
Add testing CI (#12)
* Commit * Include more python versions in the matrix * Enable workflow for PRs --------- Co-authored-by: Bodo Graumann <mail@bodograumann.de>
1 parent 59487f7 commit 8d0842f

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
workflow_dispatch:
11+
12+
jobs:
13+
test:
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
19+
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
20+
21+
steps:
22+
- uses: actions/checkout@v5
23+
24+
- name: Set up Python ${{ matrix.python-version }}
25+
uses: actions/setup-python@v6
26+
with:
27+
python-version: ${{ matrix.python-version }}
28+
allow-prereleases: true
29+
30+
- name: Install dependencies
31+
if: runner.os == 'macOS'
32+
run: brew install libiconv
33+
34+
- name: Install package
35+
run: |
36+
python -m pip install --upgrade pip
37+
pip install -e .
38+
39+
- name: Run tests
40+
run: |
41+
python -m unittest -v

0 commit comments

Comments
 (0)