Skip to content

Commit

Permalink
Clean up poetry install for coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamghill committed Jul 28, 2024
1 parent 9576581 commit 5163ba7
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
name: Coverage

on:
push:
branches:
- main
workflow_dispatch:

env:
PYTHON_VERSION: 3.11

jobs:
generate-coverage:
runs-on: ubuntu-latest
Expand All @@ -14,19 +18,16 @@ jobs:
with:
fetch-depth: 1

- name: Set up Python 3.11
uses: actions/[email protected]
with:
python-version: "3.11"

- name: Install Poetry
uses: abatilo/[email protected]
with:
poetry-version: 1.6.1

- name: Set Poetry config
run: |
poetry config virtualenvs.path ~/.virtualenvs3.11
pipx install poetry
poetry config virtualenvs.path ~/.virtualenvs${{ env.PYTHON_VERSION }}
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v3
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: "poetry"

- name: Install dependencies
run: poetry install -E minify
Expand Down

0 comments on commit 5163ba7

Please sign in to comment.