Skip to content

Fix escaping of braces in pre-commit hash step in linting workflow #112

Fix escaping of braces in pre-commit hash step in linting workflow

Fix escaping of braces in pre-commit hash step in linting workflow #112

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
paths-ignore:
- "**.md"
- "**.rst"
- "**.svg"
- "docs/**"
- "CITATION.cff"
- "LICENSE"
- ".github/release.yml"
- ".github/dependabot.yml"
- ".github/workflows/docs.yml"
- ".github/workflows/linting.yml"
- ".github/workflows/pypi-publish.yml"
schedule:
- cron: "0 0 * * 1"
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.10"
- "3.11"
- "3.12"
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Cache tox
uses: actions/cache@v4
with:
path: .tox
key: tox-${{hashFiles('pyproject.toml') }}
- name: Set up python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: "pyproject.toml"
- name: Install dependencies
run: python -m pip install tox tox-gh-actions
- name: Test with tox
run: tox