Skip to content
Open
Show file tree
Hide file tree
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
19 changes: 18 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,22 @@ jobs:
test:
name: Test & Scan (${{ matrix.service }})
runs-on: ubuntu-latest


services:
postgres:
image: postgres:15
env:
POSTGRES_USER: user
POSTGRES_PASSWORD: pass
POSTGRES_DB: traffic
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432

strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -62,6 +77,8 @@ jobs:
- name: Run pytest with coverage
if: steps.check.outputs.exists == 'true'
working-directory: ${{ matrix.dir }}
env:
POSTGRES_URL: postgresql://user:pass@localhost:5432/traffic
run: |
pytest tests/ -v \
--ignore=tests/integration \
Expand Down
2 changes: 1 addition & 1 deletion services/b2-data