diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 352fcab..0eef729 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -27,12 +27,22 @@ jobs: lint: name: Lint code runs-on: "ubuntu-latest" + strategy: + matrix: + python-version: [3.8] steps: - uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.8" + python-version: ${{ matrix.python-version }} + - name: Cache packages + uses: actions/cache@v3 + with: + path: ~/.cache/pre-commit + key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('tox.ini') }} + restore-keys: | + ${{ runner.os }}-pip-${{ matrix.python-version }}- - name: Install dependencies run: python -m pip install tox - name: Run linting