fix github ci
This commit is contained in:
parent
800e866663
commit
be418029bd
5
.github/workflows/main.yml
vendored
5
.github/workflows/main.yml
vendored
|
@ -25,11 +25,11 @@ jobs:
|
||||||
# required
|
# required
|
||||||
POSTGRES_PASSWORD: test
|
POSTGRES_PASSWORD: test
|
||||||
# optional (defaults to `5432`)
|
# optional (defaults to `5432`)
|
||||||
POSTGRES_PORT: 15432
|
POSTGRES_PORT: 5432
|
||||||
# optional (defaults to `postgres`)
|
# optional (defaults to `postgres`)
|
||||||
POSTGRES_USER: test
|
POSTGRES_USER: test
|
||||||
ports:
|
ports:
|
||||||
- 15432:15432
|
- 15432:5432
|
||||||
# set health checks to wait until postgres has started
|
# set health checks to wait until postgres has started
|
||||||
options: >-
|
options: >-
|
||||||
--health-cmd pg_isready
|
--health-cmd pg_isready
|
||||||
|
@ -63,6 +63,7 @@ jobs:
|
||||||
poetry run black --check .
|
poetry run black --check .
|
||||||
flake8
|
flake8
|
||||||
|
|
||||||
|
|
||||||
- name: Test with pytest
|
- name: Test with pytest
|
||||||
run: |
|
run: |
|
||||||
pytest --cov=. --cov-report=term:skip-covered --cov-report=html:htmlcov --cov-fail-under=60
|
pytest --cov=. --cov-report=term:skip-covered --cov-report=html:htmlcov --cov-fail-under=60
|
||||||
|
|
Loading…
Reference in a new issue