chore(deps): bump actions/checkout from 4 to 6 #364
Workflow file for this run
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: CI | |
| # yamllint disable-line rule:truthy | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - 'src/**' | |
| - 'tests/**' | |
| - 'setup.py' | |
| - 'pyproject.toml' | |
| - 'MANIFEST.in' | |
| - '.pre-commit-config.yaml' | |
| - '.pylintrc' | |
| - '.yamllint' | |
| - '.github/workflows/**' | |
| pull_request: | |
| paths: | |
| - 'src/**' | |
| - 'tests/**' | |
| - 'setup.py' | |
| - 'pyproject.toml' | |
| - 'MANIFEST.in' | |
| - '.pre-commit-config.yaml' | |
| - '.pylintrc' | |
| - '.yamllint' | |
| - '.github/workflows/**' | |
| env: | |
| DEFAULT_PYTHON: "3.10" | |
| PRE_COMMIT_HOME: ~/.cache/pre-commit | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ env.DEFAULT_PYTHON }} | |
| - name: Cache pre-commit environments | |
| uses: actions/cache@v5 | |
| with: | |
| path: ${{ env.PRE_COMMIT_HOME }} | |
| key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }} | |
| restore-keys: pre-commit- | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update && sudo apt-get install -y libxml2-dev libxslt1-dev python3-dev build-essential | |
| pip install -e ".[dev]" | |
| - name: Run all pre-commit hooks | |
| run: pre-commit run --all-files --show-diff-on-failure | |
| tests: | |
| name: Tests (Python ${{ matrix.python-version }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: 'pip' | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update && sudo apt-get install -y libxml2-dev libxslt1-dev python3-dev build-essential | |
| pip install -e ".[dev]" | |
| - name: Run tests | |
| run: pytest tests/ --tb=short --cov=src --cov-report=term-missing |