Skip to content

Commit

Permalink
Update CI tests workflow to use Poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
klaasnicolaas committed Apr 26, 2024
1 parent b90bcc2 commit 80665a3
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,21 @@ jobs:

steps:
- uses: actions/[email protected]
- name: 🏗 Set up Poetry
run: pipx install poetry
- name: Set up Python 3.11
uses: actions/[email protected]
with:
python-version: 3.11
- name: Install dependencies
- name: 🏗 Install workflow dependencies
run: |
pip install .
pip install -r requirements-test.txt
poetry config virtualenvs.create true
poetry config virtualenvs.in-project true
- name: 🏗 Install dependencies
run: poetry install --no-interaction
- name: Lint with flake8
run: |
flake8 forecast_solar
- name: Run tests
poetry run flake8 src/forecast_solar
- name: 🚀 Run pytest
run: |
pytest tests
poetry run pytest -v --cov src tests

0 comments on commit 80665a3

Please sign in to comment.