status-go/.github/workflows/test-reliability.yml
fbarbu15 9c887a6d87
test_: reactivate reliability workflow (#6280)
* test_: reactivate reliability workflow

* test_: reactivate reliability workflow

* test_: use foundry stable

* test_: remove test branch

* test_: run tests in parallel

* test_: fix zizmor warnings and test it

* test_: remove on push
2025-01-30 16:04:30 +02:00

52 lines
1.6 KiB
YAML

name: Test Reliability
on:
workflow_dispatch:
schedule:
- cron: '0 2 * * *'
env:
FORCE_COLOR: "1"
jobs:
test-reliability:
timeout-minutes: 90
runs-on: ubuntu-latest
permissions:
contents: read # Restrict repository access to read-only
actions: read # Only read actions, no write access
checks: write # Allow posting test reports
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- 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 -n auto -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'