Skip to content

chore(deps): update github actions non-major #1958

chore(deps): update github actions non-major

chore(deps): update github actions non-major #1958

Workflow file for this run

name: CI
on:
push:
branches:
- "main"
pull_request: {}
defaults:
run:
shell: bash
jobs:
test:
name: Test Python ${{ matrix.python }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python: ["3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # 6.0.3
- uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # 8.3.2
with:
python-version: ${{ matrix.python }}
enable-cache: true
- name: Install dependencies
run: uv sync --locked --dev
- name: Test
run: uv run pytest
smoke-test:
name: Smoke test (Python ${{ matrix.python }})
if: "${{ github.event_name == 'pull_request' && contains(toJSON(github.event.pull_request.labels.*.name), 'autorelease: pending') }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python: ["3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # 6.0.3
- uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # 8.3.2
with:
python-version: ${{ matrix.python }}
- name: Build
run: uv build
- name: Smoke test (wheel)
run: uv run --isolated --no-project --with dist/*.whl tests/smoke_test.py
- name: Smoke test (sdist)
run: uv run --isolated --no-project --with dist/*.tar.gz tests/smoke_test.py