This commit is contained in:
Jakub Miazek 2022-11-04 10:13:50 +01:00
parent 6bf264fb3e
commit 1f1c2fd6ce

View File

@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
python-version: ["3.9", "3.10"] python-version: [3.10"]
fail-fast: false fail-fast: false
services: services:
@ -44,11 +44,7 @@ jobs:
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root run: poetry install --no-interaction --no-root
- name: Test with Coverage - name: Test with Coverage
run: poetry run pytest --cov=. --cov-report=xml run: poetry run pytest
- uses: actions/upload-artifact@v3
with:
name: coverage-xml
path: coverage.xml
env: env:
PYTHONDONTWRITEBYTECODE: 1 PYTHONDONTWRITEBYTECODE: 1
PYTHONUNBUFFERED: 1 PYTHONUNBUFFERED: 1
@ -57,5 +53,6 @@ jobs:
SQL_USER: user SQL_USER: user
POSTGRES_PASSWORD: secret POSTGRES_PASSWORD: secret
PGPASSWORD: secret PGPASSWORD: secret
POSTGRES_USER: user
POSTGRES_DB: testdb