mirror of
https://github.com/grillazz/fastapi-sqlalchemy-asyncpg.git
synced 2025-08-26 16:40:40 +03:00
fix ci
This commit is contained in:
parent
6bf264fb3e
commit
1f1c2fd6ce
11
.github/workflows/build-and-test.yml
vendored
11
.github/workflows/build-and-test.yml
vendored
@ -9,7 +9,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ["3.9", "3.10"]
|
||||
python-version: [3.10"]
|
||||
fail-fast: false
|
||||
|
||||
services:
|
||||
@ -44,11 +44,7 @@ jobs:
|
||||
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
|
||||
run: poetry install --no-interaction --no-root
|
||||
- name: Test with Coverage
|
||||
run: poetry run pytest --cov=. --cov-report=xml
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: coverage-xml
|
||||
path: coverage.xml
|
||||
run: poetry run pytest
|
||||
env:
|
||||
PYTHONDONTWRITEBYTECODE: 1
|
||||
PYTHONUNBUFFERED: 1
|
||||
@ -57,5 +53,6 @@ jobs:
|
||||
SQL_USER: user
|
||||
POSTGRES_PASSWORD: secret
|
||||
PGPASSWORD: secret
|
||||
|
||||
POSTGRES_USER: user
|
||||
POSTGRES_DB: testdb
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user