diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e429edac..479b2618 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 @@ -38,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 @@ -81,9 +93,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 +132,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 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: