Skip to content

Commit

Permalink
feat: install poetry differently
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinHowarth committed Jan 8, 2020
1 parent 5084d27 commit effdd04
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install poetry
run: |
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
Expand Down
27 changes: 24 additions & 3 deletions .github/workflows/test_and_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,8 @@ jobs:
- run: |
$HOME/.poetry/bin/poetry run pydocstyle shimmer tests examples
# Run on windows because it has GL available.
pytest-windows:
runs-on: windows-latest
pytest-ubuntu:
runs-on: 1.0-glvnd-devel-ubuntu18.04

steps:
- uses: actions/checkout@v1
Expand All @@ -91,7 +90,29 @@ jobs:
run: |
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
$HOME/.poetry/bin/poetry install
- run: |
$HOME/.poetry/bin/poetry run pytest tests
env:
SKIP_GUI_TESTS: 1
pytest-windows:
runs-on: windows-latest

steps:
- uses: actions/checkout@v1
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8

- name: Install dependencies
run: |
(Invoke-WebRequest -Uri https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py -UseBasicParsing).Content | python
%USERPROFILE%\.poetry\bin\poetry install
- run: |
%USERPROFILE%\.poetry\bin\poetry run pytest tests
env:
SKIP_GUI_TESTS: 1

0 comments on commit effdd04

Please sign in to comment.