-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update CI tests workflow to use Poetry
- Loading branch information
1 parent
b90bcc2
commit 80665a3
Showing
1 changed file
with
10 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |