Skip to content

Commit

Permalink
💚 Download poetry via action instead of pipx (for self-hosted runner)
Browse files Browse the repository at this point in the history
  • Loading branch information
i-be-snek committed Oct 27, 2024
1 parent 45ece64 commit 0eaf9ce
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,21 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: 3.11
cache: poetry
- run: pipx install poetry==1.8.3
- run: poetry install
- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
version: 1.8.3
virtualenvs-create: true
virtualenvs-in-project: true
- name: Set up cache
uses: actions/cache@v2
id: cached-poetry-dependencies
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
run: poetry install
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
- id: cache-lfs
name: Cache LFS files
uses: actions/[email protected]
Expand Down

0 comments on commit 0eaf9ce

Please sign in to comment.