Skip to content

chore: pin GitHub Actions to commit SHAs for security #235

chore: pin GitHub Actions to commit SHAs for security

chore: pin GitHub Actions to commit SHAs for security #235

Workflow file for this run

name: Test package
on:
push:
branches:
- main
pull_request:
jobs:
lint-and-test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ['3.10', '3.11', '3.12']
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0
with:
version: "latest"
- name: Install dependencies
run: |
uv sync --dev
- name: Lint with ruff
run: |
uv run ruff check .
- name: Run unit tests
run: |
uv run python -m unittest