feat: uv run #58
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: Test | |
permissions: | |
contents: read | |
pull-requests: read | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- output/** | |
- "**.md" | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [pypy3.10, "3.11", "3.12", "3.13"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: setup Python with uv | |
id: setup-uv | |
uses: astral-sh/setup-uv@v5 | |
with: | |
version: latest | |
python-version: ${{ matrix.python-version }} | |
enable-cache: true | |
prune-cache: false # do not remove pre-built wheels | |
ignore-nothing-to-cache: true | |
cache-dependency-glob: "**/pyproject.toml" | |
- name: hint on cache hit | |
if: steps.setup-uv.outputs.cache-hit == 'true' | |
run: echo "Hit cache" | |
- run: uv run cngal_calendar.py |