Skip to content

Commit ec091d2

Browse files
committed
wip
1 parent 05054a8 commit ec091d2

2 files changed

Lines changed: 13 additions & 14 deletions

File tree

.github/workflows/check.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ on:
1414
jobs:
1515
check:
1616

17-
runs-on: ubuntu-latest
17+
runs-on: ubuntu-22.04
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
21+
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
2222
steps:
2323
- uses: actions/checkout@v4
2424
with:
@@ -30,13 +30,14 @@ jobs:
3030
python-version: ${{ matrix.python-version }}
3131

3232
- name: Setup poetry
33-
run: |
34-
python3 -m pip install --user pipx
35-
python3 -m pipx ensurepath
36-
pipx install poetry==1.8.5 --python ${{ steps.setup-python.outputs.python-path }}
33+
uses: abatilo/actions-poetry@v4
34+
with:
35+
poetry-version: '2.0.1'
3736

3837
- name: Setup a local virtual environment
3938
run: |
39+
poetry env use ${{ steps.setup-python.outputs.python-path }}
40+
poetry run python --version
4041
poetry config virtualenvs.create true --local
4142
poetry config virtualenvs.in-project true --local
4243

.github/workflows/lint.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,16 @@ jobs:
1818
id: setup-python
1919
with:
2020
python-version: '3.9'
21-
- name: Setup poetry
22-
run: |
23-
python3 -m pip install --user pipx
24-
python3 -m pipx ensurepath
25-
pipx install poetry==1.8.5 --python ${{ steps.setup-python.outputs.python-path }}
2621

27-
- name: Check python version
28-
run: |
29-
poetry run python --version
22+
- name: Setup poetry
23+
uses: abatilo/actions-poetry@v4
24+
with:
25+
poetry-version: '2.0.1'
3026

3127
- name: Setup a local virtual environment
3228
run: |
29+
poetry env use ${{ steps.setup-python.outputs.python-path }}
30+
poetry run python --version
3331
poetry config virtualenvs.create true --local
3432
poetry config virtualenvs.in-project true --local
3533

0 commit comments

Comments
 (0)