Skip to content

Commit f6b919a

Browse files
committed
add tests workflow
1 parent 29e33b1 commit f6b919a

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/tests.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Run Tests
2+
3+
on:
4+
push:
5+
pull_request:
6+
types: [opened, reopened, synchronize]
7+
8+
jobs:
9+
check:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
python-version: ["3.11"]
15+
16+
name: check ${{ matrix.python-version }}
17+
steps:
18+
- uses: actions/checkout@v3
19+
with:
20+
fetch-depth: 0
21+
22+
- name: Set up CPython ${{ matrix.python-version }}
23+
uses: actions/setup-python@v4
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
27+
- name: Install dependencies
28+
id: install-deps
29+
run: |
30+
python -m pip install --upgrade pip setuptools
31+
pip install -U -r requirements.txt
32+
pip install -U -r requirements-tests.txt
33+
34+
- name: Run Tests
35+
if: ${{ always() && steps.install-deps.outcome == 'success' }}
36+
run: |
37+
pytest

0 commit comments

Comments
 (0)