mirror of
https://github.com/usestrix/strix.git
synced 2026-10-07 02:58:26 +00:00
Add uv lock --check, a wheel install smoke test, a PyInstaller dry run, actionlint and zizmor on the workflows, CodeQL, and Dependabot for action pins, uv, Go and npm dependencies. Release caches are disabled so zizmor's cache-poisoning audit passes.
21 lines
643 B
YAML
21 lines
643 B
YAML
name: Set up Python environment
|
|
description: Install Python and uv, then sync the locked project environment.
|
|
|
|
inputs:
|
|
python-version:
|
|
description: Python version to install.
|
|
default: '3.12'
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
|
|
with:
|
|
python-version: ${{ inputs.python-version }}
|
|
- uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5.4.2
|
|
with:
|
|
enable-cache: true
|
|
- run: uv sync --frozen --python "$PYTHON_VERSION"
|
|
shell: bash
|
|
env:
|
|
PYTHON_VERSION: ${{ inputs.python-version }}
|