Skip to content

Commit 082653b

Browse files
authored
chore(ci): pipeline using same version of python for all tests (#191)
1 parent 251e7b1 commit 082653b

File tree

2 files changed

+20
-23
lines changed

2 files changed

+20
-23
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +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 }}
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"
4052

4153
release-please:
4254
needs: test
@@ -76,9 +88,7 @@ jobs:
7688
fetch-depth: 0
7789

7890
- name: Set up Poetry
79-
uses: abatilo/actions-poetry@v4
80-
with:
81-
poetry-version: 1.8.4
91+
run: pipx install poetry==1.8.5 --python python3.11
8292

8393
- name: Install dependencies
8494
run: poetry install
@@ -116,20 +126,7 @@ jobs:
116126
run: make rename_project
117127

118128
- name: Set up Poetry
119-
uses: abatilo/actions-poetry@v4
120-
with:
121-
poetry-version: 1.8.4
122-
123-
- name: Setup a local virtual environment (if no poetry.toml file)
124-
run: |
125-
poetry config virtualenvs.create true --local
126-
poetry config virtualenvs.in-project true --local
127-
128-
- uses: actions/cache@v4
129-
name: Define a cache for the virtual environment based on the dependencies lock file
130-
with:
131-
path: ./.venv
132-
key: venv-${{ hashFiles('poetry.lock') }}
129+
run: pipx install poetry==1.8.5 --python python3.11
133130

134131
- name: Install the project dependencies
135132
run: poetry install

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
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)