Skip to content

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

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

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

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@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
- uses: wistia/parse-tool-versions@32f568a4ffd4bfa7720ebf93f171597d1ebc979a # v2.1.1
with:
postfix: _TOOL_VERSION
- uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.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.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
- uses: wistia/parse-tool-versions@32f568a4ffd4bfa7720ebf93f171597d1ebc979a # v2.1.1
with:
postfix: _TOOL_VERSION
- name: Install uv
uses: astral-sh/setup-uv@1e862dfacbd1d6d858c55d9b792c756523627244 # v7.1.4
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
shell: bash
run: uv run pytest --cov=stacklet -v tests