Skip to content

Commit 7fa60f9

Browse files
committed
.github: add Tests workflow
1 parent f2ed92c commit 7fa60f9

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-24.04
12+
13+
env:
14+
PYTHONPATH: ${{ github.workspace }}:${{ github.workspace }}/web
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
20+
- name: Set up Python
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: '3.10'
24+
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install pytest
29+
pip install -r tests/requirements.txt
30+
pip install -r web/requirements.txt
31+
32+
- name: Run tests
33+
run: |
34+
pytest tests/ -v --tb=short

0 commit comments

Comments
 (0)