Bump tox from 4.11.4 to 4.12.0 #1864
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Integration Tests | |
on: [pull_request] | |
jobs: | |
build: | |
strategy: | |
max-parallel: 4 | |
matrix: | |
os: [ubuntu-latest] | |
python-version: ["3.11"] | |
runs-on: ${{ matrix.os }} | |
name: Integration Tests | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install requirements | |
run: | | |
pip install aiohttp aiofiles motor pytest pytest-asyncio | |
- name: Start Services | |
run: | | |
docker compose --env-file .env.example up -d --build | |
sleep 45 | |
- name: Run Integration test | |
run: | | |
pytest tests/integration | |
env: | |
BASE_URL: http://localhost:5430 | |
OIDC_URL: http://localhost:8000 | |
- name: Collect logs from docker | |
if: ${{ failure() }} | |
run: docker compose logs --no-color -t > tests/dockerlogs || true | |
- name: Persist log files | |
if: ${{ failure() }} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: test_debugging_help | |
path: tests | |
- name: Shut down services and remove volumes | |
run: | | |
docker compose down -v | |
sleep 30 | |
- name: Create TLS keys and certificates | |
run: ./scripts/tls/tls_helper.sh | |
- name: Start services with TLS enabled | |
run: | | |
docker compose -f docker-compose-tls.yml --env-file .env.example up -d | |
sleep 45 | |
- name: Run Integration test | |
run: | | |
pytest tests/integration | |
env: | |
BASE_URL: http://localhost:5430 | |
OIDC_URL: http://localhost:8000 | |
MONGO_SSL: True | |
- name: Collect logs from docker | |
if: ${{ failure() }} | |
run: docker compose logs --no-color -t > tests/dockerlogs || true | |
- name: Persist log files | |
if: ${{ failure() }} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: test_debugging_help | |
path: tests |