switch to inline tests
This commit is contained in:
parent
f2ac6f2ad1
commit
8ce98368da
27
.github/workflows/ci.yml
vendored
27
.github/workflows/ci.yml
vendored
@ -38,23 +38,20 @@ jobs:
|
||||
- 5432:5432
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Setup docker buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- name: Build container image
|
||||
uses: docker/build-push-action@v5
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
push: false
|
||||
tags: ${{ env.IMAGE_NAME }}:ci
|
||||
target: ci
|
||||
load: true
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
python-version: "3.12"
|
||||
- name: Setup poetry
|
||||
uses: abatilo/actions-poetry@v2
|
||||
with:
|
||||
poetry-version: "1.8.3"
|
||||
- name: Install dependencies
|
||||
run: poetry install --with=test
|
||||
- name: Run pytest
|
||||
uses: addnab/docker-run-action@v3
|
||||
with:
|
||||
image: ${{ env.IMAGE_NAME }}:ci
|
||||
options: -v ${{ github.workspace }}:/work -e DATABASE_URL=postgresql+psycopg://postgres:postgres@postgres:5432/postgres
|
||||
run: pytest --cov=teufa tests/
|
||||
run: pytest --cov=teufa tests/
|
||||
env:
|
||||
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/postgres
|
||||
- name: Upload coverage reports to Codecov
|
||||
uses: codecov/codecov-action@v4.0.1
|
||||
with:
|
||||
|
Loading…
x
Reference in New Issue
Block a user