diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index bfbc389..f6c27c8 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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: @@ -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 \ diff --git a/services/b2-data b/services/b2-data index 80c1db9..9afafd0 160000 --- a/services/b2-data +++ b/services/b2-data @@ -1 +1 @@ -Subproject commit 80c1db961e63a4d68730dcf8f8ed7a48481e1e3a +Subproject commit 9afafd033cd3f7d9ac22a7623d0ed333ae6652e9