diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 174142a..661ba7b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,13 +15,7 @@ jobs: steps: - uses: actions/checkout@v2 - uses: actions/setup-python@v2 - - name: set PY - run: echo "::set-env name=PY::$(python -c 'import hashlib, sys;print(hashlib.sha256(sys.version.encode()+sys.executable.encode()).hexdigest())')" - - uses: actions/cache@v1 - with: - path: ~/.cache/pre-commit - key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }} - - uses: pre-commit/action@v1.1.0 + - uses: pre-commit/action@v2.0.0 checks: runs-on: ubuntu-latest @@ -33,6 +27,7 @@ jobs: - 3.5 - 3.6 - 3.8 + name: Check Python ${{ matrix.python-version }} steps: - uses: actions/checkout@v2