Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,19 @@ on:

jobs:
test:
runs-on: ubuntu-latest
# Pinned: ubuntu-latest moved to 26.04 between runs and broke this job without a code change.
# Move the pin on purpose, with a green run on the new image.
runs-on: ubuntu-24.04

steps:
# Step 1: Check out the repository
- name: Check out the repository
uses: actions/checkout@v6

- name: Set up Docker
run: |
sudo apt-get update
sudo apt-get install -y docker-compose
# Compose v2 ships with the runner as the `docker compose` plugin. The standalone v1
# `docker-compose` from apt is gone on newer images; fail here, loudly, if the plugin is too.
- name: Check Docker Compose
run: docker compose version

- name: Create .env file
run: |
Expand All @@ -29,11 +31,11 @@ jobs:

- name: Build and run services with Docker Compose
run: |
docker-compose up --build --detach
docker compose up --build --detach

- name: Run tests inside Docker container
run: |
docker-compose run --rm conserver bash -c "
docker compose run --rm conserver bash -c "
pytest --maxfail=5 --disable-warnings --cov --cov-report=term-missing:skip-covered --cov-report=xml --cov-report=html
"

Expand All @@ -48,4 +50,4 @@ jobs:

- name: Clean up
if: always()
run: docker-compose down
run: docker compose down