Bump platformdirs from 4.1.0 to 4.2.1 #82
This file contains 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: CI | |
on: | |
push: | |
branches: | |
- '**' # run on all branches | |
pull_request: | |
branches: | |
- '**' # run on all branches | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.11', '3.12'] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Cache pip packages | |
uses: actions/cache@v4 | |
env: | |
cache-name: cache-pypi-modules | |
with: | |
# pip cache files are stored in `~/.cache/pip` on Linux | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('requirements/production.txt', 'requirements/testing.txt') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
- name: Cache pre-commit packages | |
uses: actions/cache@v4 | |
env: | |
cache-name: cache-pre-commit | |
with: | |
# pre-commit cache files are usually stored in `~/.cache/pre-commit` on Linux | |
path: ~/.cache/pre-commit | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('.pre-commit-config.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
- name: Install dependencies | |
run: | | |
pip install -r requirements/testing.txt | |
- name: CI | |
run: | | |
tox | |
- name: Upload coverage artifact | |
uses: actions/[email protected] | |
with: | |
name: coverage-${{ matrix.python-version }} | |
path: .coverage |