Skip to content

Commit

Permalink
Use .env.testing with running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shrir committed Dec 12, 2024
1 parent b38f99e commit 83c5668
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
strategy:
fail-fast: true
matrix:
python-version: ["3.11","3.12"]
python-version: ["3.11", "3.12"]
steps:
- name: Check out repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -64,8 +64,11 @@ jobs:
- name: Install dependencies
run: pdm install -G:all

- name: Install dotenv
run: pdm add dotenv-cli

- name: Test with Coverage
run: pdm run pytest tests --cov=app --cov-report=xml
run: pdm run dotenv -f .env.testing run pytest tests --cov=app --cov-report=xml

- if: matrix.python-version == '3.11'
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 83c5668

Please sign in to comment.