Bump actions/cache from 5 to 6 #19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| name: "unit tests - all" | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| jobs: | |
| tox: | |
| name: "Python ${{ matrix.python-version }} -- ${{ matrix.os }} " | |
| runs-on: ${{ matrix.os }} | |
| continue-on-error: ${{ matrix.experimental }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] | |
| python-version: ["3.11", "3.12"] | |
| experimental: [false] | |
| include: | |
| - os: ubuntu-latest | |
| python-version: "3.13" | |
| experimental: true | |
| - os: macos-latest | |
| python-version: "3.12" | |
| experimental: true | |
| steps: | |
| - name: "check out repository" | |
| uses: "actions/checkout@v6" | |
| with: | |
| submodules: 'true' | |
| - name: "set up python ${{ matrix.python-version }}" | |
| uses: "actions/setup-python@v6" | |
| with: | |
| python-version: "${{ matrix.python-version }}" | |
| - name: "get pip cache dir" | |
| id: "pip-cache" | |
| run: | | |
| echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT | |
| - name: "show outputs.dir" | |
| run: echo "${{ steps.pip-cache.outputs.dir }}" | |
| - name: "cache pip packages" | |
| uses: "actions/cache@v6" | |
| with: | |
| path: "${{ steps.pip-cache.outputs.dir }}" | |
| key: "${{ runner.os }}-pip-${{ hashFiles('**/base.txt', '**/local.txt') }}" | |
| restore-keys: | | |
| ${{ runner.os }}-pip- | |
| - name: "install tox" | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install tox | |
| - name: "run tox" | |
| env: | |
| TOXENV: py3 | |
| run: | | |
| tox |