Skip to content

Generate Requirements Files #4

Generate Requirements Files

Generate Requirements Files #4

name: Generate Requirements Files
on:
workflow_dispatch:
jobs:
generate-requirements:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
# Install a specific version of uv.
version: "0.5.4"
- name: Generate requirements file
run: uv pip compile --all-extras pyproject.toml -o requirements-${{ matrix.os }}-${{ matrix.python-version }}.txt
- name: Upload requirements file
uses: actions/upload-artifact@v4
with:
name: requirements
path: requirements-${{ matrix.os }}-${{ matrix.python-version }}.txt