Skip to content

Commit

Permalink
Updated for Poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
rofrano committed Apr 9, 2024
1 parent eca4242 commit 6c84bf0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ jobs:

- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
python -m pip install -U pip poetry
poetry config virtualenvs.create false
poetry install
- name: Linting
run: |
Expand All @@ -55,10 +56,10 @@ jobs:
- name: Run unit tests with green
run: |
export FLASK_APP=service:app
pytest --pspec --cov=service --cov-fail-under=95 --disable-warnings
env:
DATABASE_URI: "postgresql+psycopg://postgres:pgs3cr3t@postgres:5432/testdb"
FLASK_APP: "wsgi:app"

- name: Upload code coverage
uses: codecov/[email protected]

0 comments on commit 6c84bf0

Please sign in to comment.