Skip to content

Commit

Permalink
separate poetry call from install
Browse files Browse the repository at this point in the history
use pipx to install poetry on windows
  • Loading branch information
wleightond committed Feb 13, 2023
1 parent 8188ce5 commit 47f291a
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,15 +147,18 @@ jobs:
- uses: actions/checkout@v2
- name: Install deps
run: |
(Invoke-WebRequest -Uri https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py -UseBasicParsing).Content | python -
$env:path = $env:path + ";C:\Users\runneradmin\.poetry\bin"; poetry config virtualenvs.in-project true
python -m pip install --user pipx
python -m pipx ensurepath
python -m pipx install poetry==1.3.2
# (Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | python -
- name: Install python dependencies
# poetry cache clear --all pypi ref: https://stackoverflow.com/questions/72551057/poetry-gives-toomanyindirects-error-suddenly
# Remove when this is resolved.
run: |
$env:path = $env:path + ";C:\Users\runneradmin\.poetry\bin"; poetry cache clear --all pypi
$env:path = $env:path + ";C:\Users\runneradmin\.poetry\bin"; poetry install -E 'twisted web'
poetry config virtualenvs.in-project true
poetry cache clear --all pypi
poetry install -E 'twisted web'
- name: Integration Tests
run: |
$env:LIVE = 'True'
$env:path = $env:path + ";C:\Users\runneradmin\.poetry\bin"; poetry run coverage run --source=.\tests\integration -m pytest .\tests\integration\test_custom_binary.py --runv2
poetry run coverage run --source=.\tests\integration -m pytest .\tests\integration\test_custom_binary.py --runv2

0 comments on commit 47f291a

Please sign in to comment.