Skip to content

Commit 9650145

Browse files
authored
chore(ci): pipeline using same version of python for all tests (#569)
1 parent 297be5e commit 9650145

File tree

2 files changed

+19
-10
lines changed

2 files changed

+19
-10
lines changed

.github/workflows/ci.yml

+17-8
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,30 @@ jobs:
2525
python-version: ${{ matrix.python-version }}
2626

2727
- name: Set up Poetry
28-
uses: abatilo/actions-poetry@v4
29-
with:
30-
poetry-version: 1.8.4
28+
run: pipx install poetry==1.8.5 --python python${{ matrix.python-version }}
3129

3230
- name: Run Tests
3331
run: make run_tests
3432

3533
- name: Upload coverage to Coveralls
36-
if: ${{ matrix.python-version }} == "3.12"
3734
uses: coverallsapp/github-action@v2
3835
with:
3936
github-token: ${{ secrets.GITHUB_TOKEN }}
40-
fail-on-error: false
37+
flag-name: run-${{ join(matrix.*, '-') }}
38+
parallel: true
39+
40+
finish_tests:
41+
needs: test
42+
name: Upload tests coveralls results
43+
if: ${{ always() }}
44+
runs-on: ubuntu-latest
45+
steps:
46+
- name: Coveralls Finished
47+
uses: coverallsapp/github-action@v2
48+
with:
49+
github-token: ${{ secrets.GITHUB_TOKEN }}
50+
parallel-finished: true
51+
carryforward: "run-ubuntu-latest-3.9,run-ubuntu-latest-3.10,run-ubuntu-latest-3.11,run-ubuntu-latest-3.12,run-ubuntu-latest-3.13"
4152

4253
release-please:
4354
needs: test
@@ -71,9 +82,7 @@ jobs:
7182
python-version: 3.11
7283

7384
- name: Set up Poetry
74-
uses: abatilo/actions-poetry@v4
75-
with:
76-
poetry-version: 1.8.4
85+
run: pipx install poetry==1.8.5 --python python3.11
7786

7887
- uses: actions/checkout@v4
7988
with:

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
exclude: '^.*\.(md|MD)$'
22
repos:
33
- repo: https://github.com/pre-commit/pre-commit-hooks
4-
rev: v4.5.0
4+
rev: v5.0.0
55
hooks:
66
- id: trailing-whitespace
77
- id: check-added-large-files
@@ -10,7 +10,7 @@ repos:
1010
args: ["--fix=lf"]
1111

1212
- repo: https://github.com/pycqa/isort
13-
rev: "5.13.2"
13+
rev: "6.0.0"
1414
hooks:
1515
- id: isort
1616
args:

0 commit comments

Comments
 (0)