-
Notifications
You must be signed in to change notification settings - Fork 249
48 lines (38 loc) · 1.38 KB
/
test-reliability.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
43
44
45
46
47
48
name: Test Reliability
on:
workflow_dispatch:
schedule:
- cron: '0 2 * * *'
push:
branches:
- "test-reactivate-reliability-workflow"
env:
FORCE_COLOR: "1"
jobs:
test-reliability:
timeout-minutes: 90
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.12'
cache: 'pip'
- name: Set up virtual environment in /tests-functional/
run: |
python -m venv tests-functional/.venv
echo "tests-functional/.venv/bin" >> $GITHUB_PATH # Add virtualenv to PATH for subsequent steps
- name: Install dependencies based on requirements.txt
run: pip install -r tests-functional/requirements.txt
- name: Build status-backend
run: cd tests-functional; docker compose -f docker-compose.anvil.yml -f docker-compose.test.status-go.yml -f docker-compose.status-go.local.yml up --build --remove-orphans -d
- name: Run tests
run: pytest -m "reliability" -c tests-functional/pytest.ini --junit-xml=pytest_results.xml --tb=short
- name: Test Report
if: always()
uses: dorny/test-reporter@95058abb17504553158e70e2c058fe1fda4392c2
with:
name: Pytest JUnit Test Report
path: pytest_results.xml
reporter: java-junit
use-actions-summary: 'true'