Skip to content

Commit

Permalink
test_: add ipv4 and ipv6 jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
fbarbu15 committed Feb 26, 2025
1 parent 5773697 commit 2049372
Showing 1 changed file with 43 additions and 2 deletions.
45 changes: 43 additions & 2 deletions .github/workflows/test-reliability.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,48 @@ env:
FORCE_COLOR: "1"

jobs:
test-reliability:
test-reliability-ipv4:
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.test.reliability.yml up --build --remove-orphans -d

- name: Run tests
run: pytest --reruns 2 -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'

test-reliability-ipv6:
timeout-minutes: 90
runs-on: ubuntu-latest
permissions:
Expand Down Expand Up @@ -50,4 +91,4 @@ jobs:
name: Pytest JUnit Test Report
path: pytest_results.xml
reporter: java-junit
use-actions-summary: 'true'
use-actions-summary: 'true'

0 comments on commit 2049372

Please sign in to comment.