diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml index cd0c25184..b59c0ae7c 100644 --- a/.github/workflows/code-quality.yml +++ b/.github/workflows/code-quality.yml @@ -159,13 +159,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.x' + python-version: '3.11' - name: Install pre-commit run: pip install pre-commit @@ -175,7 +172,7 @@ jobs: run: | echo "files=$(git diff --name-only origin/main...HEAD | tr '\n' ' ')" >> $GITHUB_OUTPUT - - name: Run pre-commit + - name: Run pre-commit on changed files continue-on-error: true run: | pre-commit run --files ${{ steps.changed-files.outputs.files }} diff --git a/requirements/dev.in b/requirements/dev.in index ad62e39df..8fb2cf03b 100644 --- a/requirements/dev.in +++ b/requirements/dev.in @@ -17,4 +17,4 @@ django-silk pytest-recording vcrpy -pre-commit \ No newline at end of file +pre-commit