Skip to content

Commit e1dbf52

Browse files
committed
Added FLASK_APP environment variable
1 parent 553d20a commit e1dbf52

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
poetry config virtualenvs.create false
4949
poetry install
5050
51-
- name: Linting
51+
- name: Run Code Quality Checks
5252
run: |
5353
# stop the build if there are Python syntax errors or undefined names
5454
flake8 service tests --count --select=E9,F63,F7,F82 --show-source --statistics
@@ -57,11 +57,11 @@ jobs:
5757
# Run pylint on the service
5858
pylint service tests --max-line-length=127
5959
60-
- name: Run unit tests with green
60+
- name: Run unit tests with pytest
6161
run: |
62-
export FLASK_APP=service:app
6362
pytest --pspec --cov=service --cov-fail-under=95 --disable-warnings
6463
env:
64+
FLASK_APP: "wsgi:app"
6565
DATABASE_URI: "postgresql+psycopg://postgres:pgs3cr3t@postgres:5432/testdb"
6666

6767
- name: Upload code coverage

0 commit comments

Comments
 (0)