diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3b7a910..6b55000 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -86,6 +86,8 @@ jobs: if: ${{ steps.counter.outputs.count > 0 }} with: python-version: '3.9' + cache: 'pip' + cache-dependency-path: 'setup.py' - run: pip install mypy==1.5.1 if: ${{ steps.counter.outputs.count > 0 }} - run: mypy ${{ steps.filter.outputs.python_files }} --follow-imports=silent --ignore-missing-imports diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c5dd9b1..e28a419 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,6 +29,15 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{ matrix.py }} + cache: 'pip' + cache-dependency-path: 'setup.py' + - name: Cache tox environments + uses: actions/cache@v3 + with: + path: .tox + key: tox-${{ matrix.os }}-${{ matrix.py }}-${{ hashFiles('tox.ini', 'setup.py') }} + restore-keys: | + tox-${{ matrix.os }}-${{ matrix.py }}- - name: Install tox run: python -m pip install tox - name: Setup test suite