From f4c8bfbbc2206387e46d0d8d0d0510add5f75a02 Mon Sep 17 00:00:00 2001 From: Julien Lebunetel Date: Mon, 19 Feb 2024 10:22:18 +0100 Subject: [PATCH] fix(ci): fix pre-commit and bumpversion actions --- .github/workflows/bumpversion.yml | 2 +- .github/workflows/pre-commit.yml | 13 ++++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/bumpversion.yml b/.github/workflows/bumpversion.yml index c0d86d4..61e99c3 100644 --- a/.github/workflows/bumpversion.yml +++ b/.github/workflows/bumpversion.yml @@ -12,7 +12,7 @@ jobs: name: "Bump version and create changelog with commitizen" steps: - name: Check out - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}" diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index e311c32..07ad3b2 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -11,10 +11,21 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}" + - name: Set up Python 3.12 + uses: actions/setup-python@v5 + with: + python-version: "3.12" + - name: Create a virtual environment + run: python -m venv venv + - name: Install test dependencies + run: | + python -m pip install \ + --requirement requirements.txt \ + --requirement requirements-test.txt - name: Run pre-commit uses: pre-commit/action@v3.0.0 with: