Skip to content

Commit 1fbdf49

Browse files
committed
ci(docs,tests): Try poetry cache with setup-python@v4
1 parent 7521a35 commit 1fbdf49

File tree

2 files changed

+6
-19
lines changed

2 files changed

+6
-19
lines changed

.github/workflows/docs.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,10 @@ jobs:
3434
run: echo "PUBLISH=$(echo true)" >> $GITHUB_ENV
3535

3636
- name: Install poetry
37-
run: |
38-
curl -O -sSL https://install.python-poetry.org/install-poetry.py
39-
python install-poetry.py -y --version 1.1.14
40-
echo "PATH=${HOME}/.poetry/bin:${PATH}" >> $GITHUB_ENV
41-
rm install-poetry.py
37+
run: pipx install "poetry==1.1.14"
4238

4339
- name: Set up Python ${{ matrix.python-version }}
44-
uses: actions/setup-python@v3
40+
uses: actions/setup-python@v4
4541
with:
4642
python-version: ${{ matrix.python-version }}
4743
cache: 'poetry'
@@ -50,9 +46,7 @@ jobs:
5046
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
5147

5248
- name: Install dependencies [w/ docs]
53-
run: |
54-
poetry env use ${{ matrix.python-version }}
55-
poetry install --extras "docs lint"
49+
run: poetry install --extras "docs lint"
5650

5751
- name: Build documentation
5852
run: |

.github/workflows/tests.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,16 @@ jobs:
2020
steps:
2121
- uses: actions/checkout@v3
2222
- name: Install poetry
23-
run: |
24-
curl -O -sSL https://install.python-poetry.org/install-poetry.py
25-
python install-poetry.py -y --version 1.1.14
26-
echo "PATH=${HOME}/.poetry/bin:${PATH}" >> $GITHUB_ENV
27-
rm install-poetry.py
23+
run: pipx install "poetry==1.1.14"
2824

2925
- name: Set up Python ${{ matrix.python-version }}
30-
uses: actions/setup-python@v3
26+
uses: actions/setup-python@v4
3127
with:
3228
python-version: ${{ matrix.python-version }}
3329
cache: 'poetry'
3430

3531
- name: Install dependencies
36-
run: |
37-
# This is required to do as of @actions/checkout@v3 to prevent default python from being used
38-
poetry env use ${{ matrix.python-version }}
39-
poetry install -E "docs test coverage lint format"
32+
run: poetry install -E "docs test coverage lint format"
4033

4134
- name: Lint with flake8
4235
run: poetry run flake8

0 commit comments

Comments
 (0)