Skip to content

chore: update Github Actions and switch to SHA pinning over tags (#83) #310

chore: update Github Actions and switch to SHA pinning over tags (#83)

chore: update Github Actions and switch to SHA pinning over tags (#83) #310

Workflow file for this run

name: "CI"
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
Lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: wistia/parse-tool-versions@32f568a4ffd4bfa7720ebf93f171597d1ebc979a # v2.1.1
with:
postfix: _TOOL_VERSION
- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
with:
python-version: ${{ env.PYTHON_TOOL_VERSION }}
- name: Linting
run: |
pip install pre-commit
pre-commit run --all-files
Tests:
needs: Lint
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: wistia/parse-tool-versions@32f568a4ffd4bfa7720ebf93f171597d1ebc979a # v2.1.1
with:
postfix: _TOOL_VERSION
- uses: extractions/setup-crate@4993624604c307fbca528d28a3c8b60fa5ecc859 # v1.4.0
with:
repo: casey/just
version: ${{ env.JUST_TOOL_VERSION }}
- name: Install uv
uses: astral-sh/setup-uv@5a7eac68fb9809dea845d802897dc5c723910fa3 # v7.1.3
with:
version: ${{ env.UV_TOOL_VERSION }}
activate-environment: true
enable-cache: true
- name: Install Python
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies
shell: bash
run: uv sync
- name: Pytest run
run: just test -v