-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.07 KB
/
test.yml
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
name: Test
on:
push:
branches: [ 'master' ]
pull_request:
branches: [ 'master' ]
workflow_dispatch:
permissions:
contents: read
jobs:
test_full_regression:
name: Full Regression Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
- name: Install dependencies
run: |
pip install -r worker/source/requirements.txt
- name: Prepare for testing
id: prepare
run: |
cd worker/sourceeee/
- name: Run unit tests
run: |
pytest -vv --durations=0 -s -m unit
- name: Run integration tests
if: steps.prepare.outcome == 'success' && always()
run: |
echo "Output [${{steps.prepare.outcome}}]"
echo "Output [${{steps.prepare.output}}]"
pytest -vv --durations=0 -s -m integration
- name: Run system tests
if: steps.prepare.outcome == 'success'
run: |
pytest -vv --durations=0 -s -m system