Skip to content

Commit e436d92

Browse files
authored
chore: add Python 3.13 to testing and linting workflows (#226)
* chore: add Python 3.13 to testing and linting workflows * chore: install poetry using pipx in CI
1 parent 7510234 commit e436d92

File tree

4 files changed

+622
-543
lines changed

4 files changed

+622
-543
lines changed

.github/workflows/lint.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,25 @@ jobs:
1313
- "3.10"
1414
- "3.11"
1515
- "3.12"
16+
- "3.13"
1617
steps:
1718
- uses: actions/checkout@v3
1819
- name: Set up Python ${{ matrix.python-version }}
1920
uses: actions/setup-python@v3
2021
with:
2122
python-version: ${{ matrix.python-version }}
23+
- name: Install pipx
24+
run: python -m pip install pipx && python -m pipx ensurepath
2225
- name: Install poetry
23-
run: |
24-
curl -sSL https://install.python-poetry.org | python -
26+
run: pipx install poetry && poetry --version
2527
- name: Install dependencies
2628
run: |
27-
POETRY_VIRTUALENVS_CREATE=false ~/.local/bin/poetry install
29+
POETRY_VIRTUALENVS_CREATE=false poetry install
2830
- name: Analysing the code with ruff
29-
run: ~/.local/bin/poetry run poe ruff
31+
run: poetry run poe ruff
3032
- name: Static type-checking using mypy
31-
run: ~/.local/bin/poetry run poe mypy
33+
run: poetry run poe mypy
3234
- name: Format checking using black
33-
run: ~/.local/bin/poetry run poe black-check
35+
run: poetry run poe black-check
3436
- name: Format checking using isort
35-
run: ~/.local/bin/poetry run poe isort-check
37+
run: poetry run poe isort-check

.github/workflows/test.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,24 @@ jobs:
1616
- "3.10"
1717
- "3.11"
1818
- "3.12"
19+
- "3.13"
1920
steps:
2021
- uses: actions/checkout@v3
2122
- name: Set up Python ${{ matrix.python-version }}
2223
uses: actions/setup-python@v3
2324
with:
2425
python-version: ${{ matrix.python-version }}
26+
- name: Install pipx
27+
run: python -m pip install pipx && python -m pipx ensurepath
2528
- name: Install poetry
26-
run: |
27-
curl -sSL https://install.python-poetry.org | python -
29+
run: pipx install poetry && poetry --version
2830
- name: Install dependencies
29-
run: ~/.local/bin/poetry install
31+
run: |
32+
POETRY_VIRTUALENVS_CREATE=false poetry install
3033
- name: pytest
31-
run: ~/.local/bin/poetry run poe test --junitxml=pytest-results-${{ matrix.python-version }}.xml
34+
run: poetry run poe test --junitxml=pytest-results-${{ matrix.python-version }}.xml
3235
- name: coverage
33-
run: ~/.local/bin/poetry run poe coverage
36+
run: poetry run poe coverage
3437
- name: Upload coverage to Codecov
3538
uses: codecov/codecov-action@v3
3639
with:

0 commit comments

Comments
 (0)