Skip to content

Git Hooks Tests

Git Hooks Tests #31

Workflow file for this run

name: Git Hooks Tests
on:
push:
paths:
- "**"
- ".github/workflows/tests.yml"
pull_request:
paths:
- "**"
- ".github/workflows/tests.yml"
schedule:
- cron: "37 3 * * *" # 1:37 PM AEST / 2:37 PM AEDT
jobs:
test:
name: Tests (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Print pattern-file diagnostics
run: python -c "import pathlib; home = pathlib.Path.home(); print('HOME=' + str(home)); print('user_pattern_exists=' + str((home / '.worktreeinclude').exists())); print('repo_pattern_exists=' + str(pathlib.Path('.worktreeinclude').exists()))"
- name: Run tests
run: uv run --extra test pytest tests -q