diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9c8e736..87e8777 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,5 +15,15 @@ jobs: - uses: actions/setup-python@v3 with: python-version: "3.10" - - name: self test action - uses: ./ + - run: python -m pip install pre-commit + shell: bash + - run: python -m pip freeze --local + shell: bash + - uses: actions/cache@v3 + with: + path: ~/.cache/pre-commit + key: pre-commit-3|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }} + - run: pre-commit run --show-diff-on-failure --color=always ${{ inputs.extra_args }} + # Disabled, can't run on docker, see https://github.com/orgs/community/discussions/25623 + # - name: self test action + # uses: ./