Skip to content

Commit ae5c23c

Browse files
authored
build,ci: Python 3.10.6, setup-python@v4
This was originally added in #316 but retracted due to actions/setup-python#374. In recent versions this python version issue has apparently been fixed.
2 parents b19048f + 1fbdf49 commit ae5c23c

File tree

4 files changed

+8
-21
lines changed

4 files changed

+8
-21
lines changed

.github/workflows/docs.yml

+3-9
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

+3-10
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

.python-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.10.5 3.9.13
1+
3.10.6 3.9.13

.tool-versions

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
poetry 1.1.14
2-
python 3.10.5 3.9.13
2+
python 3.10.6 3.9.13

0 commit comments

Comments
 (0)