Skip to content

docs: update cli with example #32

docs: update cli with example

docs: update cli with example #32

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
permissions:
contents: read
id-token: write
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
nix:
name: Build & Test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- { shell: py37, use_uv: false }
- { shell: py38, use_uv: true }
- { shell: py39, use_uv: true }
- { shell: py310, use_uv: true }
- { shell: py311, use_uv: true }
- { shell: py312, use_uv: true }
- { shell: py313, use_uv: true }
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Nix (Determinate)
uses: DeterminateSystems/nix-installer-action@main
- name: Use & (if token) push to Cachix (pybenchx)
uses: cachix/cachix-action@v16
with:
name: pybenchx
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- name: Flake check
run: nix flake check
- name: Show Python version (${{ matrix.shell }})
run: nix develop .#${{ matrix.shell }} -c python -V
- name: Build with uv (${{ matrix.shell }})
if: ${{ matrix.use_uv }}
run: nix develop .#${{ matrix.shell }} -c uv build
- name: Build (skipped for py37)
if: ${{ !matrix.use_uv }}
run: |
echo "Skipping wheel build on py37 (no uv); proceeding to tests."
- name: Test with uv (${{ matrix.shell }})
if: ${{ matrix.use_uv }}
run: nix develop .#${{ matrix.shell }} -c uv run -m pytest -q
- name: Test (${{ matrix.shell }})
if: ${{ !matrix.use_uv }}
run: nix develop .#${{ matrix.shell }} -c pytest -q