File tree 1 file changed +12
-15
lines changed
1 file changed +12
-15
lines changed Original file line number Diff line number Diff line change @@ -38,23 +38,20 @@ jobs:
38
38
- 5432:5432
39
39
steps :
40
40
- 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
45
43
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
54
47
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
58
55
- name : Upload coverage reports to Codecov
59
56
60
57
with :
You can’t perform that action at this time.
0 commit comments