Skip to content

Commit

Permalink
Add poetry cache to Python setup
Browse files Browse the repository at this point in the history
  • Loading branch information
cynddl committed Mar 23, 2024
1 parent 8fe8c58 commit 3490e52
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,16 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
cache: poetry
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install --with dev
run: poetry install --with dev
- name: Run tests
run: poetry run pytest --mpl --cov=api.calculator --cov-report=xml
- name: Lint
run: poetry run ruff check
- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/codecov-action@v3

0 comments on commit 3490e52

Please sign in to comment.