Skip to content

Commit a0ba1b4

Browse files
Merge pull request #5 from Mdslino/master
Add github action to run tests on pull requests
2 parents b61c13f + ae8f917 commit a0ba1b4

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/tests.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Run Tests
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
build:
7+
name: Run Tests
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
python-version: [3.8, 3.9, '3.10', 3.11, 3.12]
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Set up Python ${{ matrix.python-version }}
17+
uses: actions/setup-python@v2
18+
with:
19+
python-version: ${{ matrix.python-version }}
20+
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip setuptools wheel
24+
pip install .
25+
26+
- name: Run tests
27+
run: |
28+
pytest test/

0 commit comments

Comments
 (0)