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
|
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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user