-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 869 Bytes
/
test.yml
File metadata and controls
43 lines (36 loc) · 869 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Run Tests
on:
push:
branches:
- main
- "feature/**"
pull_request:
branches:
- main
- "feature/**"
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.8"
- name: Install dependencies
run: |
python -m venv venv
. venv/bin/activate
pip install -r dev-requirements/dev.txt
- name: Run tests
env:
PYTHONPATH: ${{ github.workspace }}
run: |
. venv/bin/activate
pytest --junitxml=reports/results.xml
- name: Upload test results
uses: actions/upload-artifact@v4
with:
name: test-results
path: reports/results.xml