From 7644aa035750f8f88b276fc7c9203d3d405745b0 Mon Sep 17 00:00:00 2001 From: Andrew Smith Date: Wed, 29 Jan 2025 22:33:20 +0000 Subject: [PATCH 1/3] chore(ci): pipeline using same version of python for all tests --- .github/workflows/ci.yml | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e429edac..4581c3d6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,9 +28,7 @@ jobs: with: python-version: ${{ matrix.python-version }} - name: Set up Poetry - uses: abatilo/actions-poetry@v4 - with: - poetry-version: 1.8.4 + run: pipx install poetry==1.8.5 --python python${{ matrix.python-version }} - name: Run Tests run: make run_tests - name: Run Tests with pydantic v1 @@ -81,9 +79,7 @@ jobs: fetch-depth: 0 - name: Set up Poetry - uses: abatilo/actions-poetry@v4 - with: - poetry-version: 1.8.4 + run: pipx install poetry==1.8.5 --python python3.11 - name: Install dependencies run: poetry install @@ -122,20 +118,7 @@ jobs: run: make rename_project - name: Set up Poetry - uses: abatilo/actions-poetry@v4 - with: - poetry-version: 1.8.4 - - - name: Setup a local virtual environment (if no poetry.toml file) - run: | - poetry config virtualenvs.create true --local - poetry config virtualenvs.in-project true --local - - - uses: actions/cache@v4 - name: Define a cache for the virtual environment based on the dependencies lock file - with: - path: ./.venv - key: venv-${{ hashFiles('poetry.lock') }} + run: pipx install poetry==1.8.5 --python python3.11 - name: Install the project dependencies run: poetry install From 0175be884066bf3acc05a45668c616b67a97c407 Mon Sep 17 00:00:00 2001 From: Andrew Smith Date: Wed, 29 Jan 2025 22:42:55 +0000 Subject: [PATCH 2/3] chore(ci): update pre-commit hooks --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 282e445b..1de61505 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ exclude: '^.*\.(md|MD)$' repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v5.0.0 hooks: - id: trailing-whitespace - id: check-added-large-files @@ -10,7 +10,7 @@ repos: args: ["--fix=lf"] - repo: https://github.com/pycqa/isort - rev: 5.13.2 + rev: 6.0.0 hooks: - id: isort args: From 0750c56637a85b60dc76cba3c477727f84800b9c Mon Sep 17 00:00:00 2001 From: Andrew Smith Date: Wed, 29 Jan 2025 22:45:17 +0000 Subject: [PATCH 3/3] chore(ci): update coveralls --- .github/workflows/ci.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4581c3d6..479b2618 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,10 +36,24 @@ jobs: pip install pydantic==1.10.12 make tests_only - name: Upload coverage to Coveralls - if: ${{ matrix.python-version }} == "3.12" uses: coverallsapp/github-action@v2 with: github-token: ${{ secrets.GITHUB_TOKEN }} + flag-name: run-${{ join(matrix.*, '-') }} + parallel: true + + finish_tests: + needs: test + name: Upload tests coveralls results + if: ${{ always() }} + runs-on: ubuntu-latest + steps: + - name: Coveralls Finished + uses: coverallsapp/github-action@v2 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + parallel-finished: true + 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" release-please: needs: test