Skip to content

Commit b5546bd

Browse files
committed
ci: now tested in multiple Python versions
1 parent 5213893 commit b5546bd

File tree

4 files changed

+23
-19
lines changed

4 files changed

+23
-19
lines changed

.github/workflows/test.yml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,31 @@ on:
55

66
jobs:
77
test:
8-
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
os: ['ubuntu', 'windows']
11+
pyver: ['3.8', '3.9', '3.10', '3.11', '3.12']
12+
exclude:
13+
- os: 'windows'
14+
pyver: '3.8'
15+
- os: 'windows'
16+
pyver: '3.9'
17+
- os: 'windows'
18+
pyver: '3.10'
19+
- os: 'windows'
20+
pyver: '3.11'
21+
- os: 'windows'
22+
pyver: '3.12'
23+
runs-on: ${{ matrix.os }}-latest
24+
name: ${{ matrix.os }} | ${{ matrix.pyver }}
925
steps:
1026
- name: Checkout repository
1127
uses: actions/checkout@v4
12-
- name: Check Install
13-
run: make venv
28+
- name: Set up Python ${{ matrix.pyver }}
29+
uses: actions/setup-python@v5
30+
with:
31+
python-version: ${{ matrix.pyver }}
32+
- name: Install
33+
run: pip install .
1434
- name: Run tests
1535
run: make test

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ __pycache__
22
build
33
ignore
44
results
5-
venv
65
*.egg-info

Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ lint:
1515
test:
1616
cd tests && bash run.sh
1717

18-
venv:
19-
bash venv.sh
20-
2118
clean:
2219
py3clean .
2320
rm -fr .pytest_cache

venv.sh

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)