Skip to content

Commit c35cc3d

Browse files
authored
💚 Fix GitHub Actions Poetry setup (tiangolo#21)
1 parent 2b87140 commit c35cc3d

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,10 @@ jobs:
2424
run: echo ::set-output name=version::$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))")
2525
- name: Install poetry
2626
run: |
27-
curl -fsS -o get-poetry.py https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py
28-
python get-poetry.py -y
29-
echo "::set-env name=PATH::$HOME/.poetry/bin:$PATH"
27+
python -m pip install --upgrade pip
28+
python -m pip install poetry
3029
- name: Configure poetry
31-
run: poetry config virtualenvs.in-project true
30+
run: python -m poetry config virtualenvs.in-project true
3231
- name: Set up cache
3332
uses: actions/cache@v1
3433
id: cache
@@ -37,10 +36,10 @@ jobs:
3736
key: venv-${{ runner.os }}-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('**/poetry.lock') }}
3837
- name: Ensure cache is healthy
3938
if: steps.cache.outputs.cache-hit == 'true'
40-
run: poetry run pip --version >/dev/null 2>&1 || rm -rf .venv
39+
run: python -m poetry run pip --version >/dev/null 2>&1 || rm -rf .venv
4140
- name: Install Dependencies
42-
run: poetry install
41+
run: python -m poetry install
4342
- name: Test
44-
run: poetry run bash scripts/test.sh
43+
run: python -m poetry run bash scripts/test.sh
4544
- name: Upload coverage
4645
uses: codecov/codecov-action@v1

0 commit comments

Comments
 (0)