Skip to content

Commit 3ec28d8

Browse files
committed
add .github action ci
1 parent 387d064 commit 3ec28d8

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/python-pytest.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
run-tests:
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
os: [ubuntu-latest, windows-latest]
17+
python-version: ["3.9", "3.10", "3.11", "3.12", "pypy-3.9", "pypy-3.10"]
18+
19+
name: Test package
20+
runs-on: ${{ matrix.os}}
21+
22+
steps:
23+
- name: Run actions/checkout
24+
uses: actions/checkout@v4
25+
26+
- name: Run actions/setup-python
27+
uses: actions/setup-python@v5
28+
with:
29+
python-version: ${{ matrix.python-version}}
30+
31+
- name: Install dependencies
32+
run: |
33+
pip install --upgrade pip
34+
pip install .[test-tools]
35+
36+
- name: Run tests
37+
run: pytest

0 commit comments

Comments
 (0)