Skip to content

Commit

Permalink
Use Poetry custom installer in GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
br3ndonland committed Oct 4, 2020
1 parent 40c425b commit 70c5380
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,13 @@ jobs:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: ${{ runner.os }}-poetry-
- name: Install dependencies
- name: Install Poetry
run: |
python -m pip install poetry
poetry install
curl -fsS -o get-poetry.py https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py
python get-poetry.py -y
echo "$HOME/.poetry/bin" >> $GITHUB_PATH
- name: Install dependencies
run: poetry install --no-interaction
env:
POETRY_VIRTUALENVS_CREATE: false
- name: Run unit tests
Expand Down

0 comments on commit 70c5380

Please sign in to comment.