Skip to content

Commit 8ce9836

Browse files
committed
switch to inline tests
1 parent f2ac6f2 commit 8ce9836

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

.github/workflows/ci.yml

+12-15
Original file line numberDiff line numberDiff line change
@@ -38,23 +38,20 @@ jobs:
3838
- 5432:5432
3939
steps:
4040
- uses: actions/checkout@v4
41-
- name: Setup docker buildx
42-
uses: docker/setup-buildx-action@v3
43-
- name: Build container image
44-
uses: docker/build-push-action@v5
41+
- name: Setup Python
42+
uses: actions/setup-python@v5
4543
with:
46-
push: false
47-
tags: ${{ env.IMAGE_NAME }}:ci
48-
target: ci
49-
load: true
50-
cache-from: type=gha
51-
cache-to: type=gha,mode=max
52-
- name: Run pytest
53-
uses: addnab/docker-run-action@v3
44+
python-version: "3.12"
45+
- name: Setup poetry
46+
uses: abatilo/actions-poetry@v2
5447
with:
55-
image: ${{ env.IMAGE_NAME }}:ci
56-
options: -v ${{ github.workspace }}:/work -e DATABASE_URL=postgresql+psycopg://postgres:postgres@postgres:5432/postgres
57-
run: pytest --cov=teufa tests/
48+
poetry-version: "1.8.3"
49+
- name: Install dependencies
50+
run: poetry install --with=test
51+
- name: Run pytest
52+
run: pytest --cov=teufa tests/
53+
env:
54+
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/postgres
5855
- name: Upload coverage reports to Codecov
5956
uses: codecov/[email protected]
6057
with:

0 commit comments

Comments
 (0)