Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
leej3 committed Jan 29, 2025
1 parent 670c920 commit 6676668
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ jobs:

- name: Install dependencies
run: |
pip install uv
pip install .[ci]
curl -LsSf https://astral.sh/uv/install.sh | sh
uv sync --all-extras
- name: Start Docker stack
run: |
cp .mockenv .env
docker compose -f .docker/postgres-compose.yaml up -d
docker compose up -d
# Wait for PostgreSQL to be ready
timeout 20 bash -c 'until docker exec $(docker ps -q -f name=postgres) pg_isready; do sleep 1; done'
docker ps
Expand All @@ -59,13 +59,13 @@ jobs:
- name: Run tests with coverage
run: |
coverage run -m pytest -s tests
coverage report
coverage xml
uv run coverage run -m pytest -s tests
uv run coverage report
uv run coverage xml
- name: Stop Docker stack
if: always()
run: docker compose -f .docker/postgres-compose.yaml down -v --remove-orphans
run: docker compose down -v --remove-orphans

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
Expand Down

0 comments on commit 6676668

Please sign in to comment.