hide CLI commands behind environment variable and warn that it is experimental #163
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Benchmarks | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
pull_request: | |
types: [opened, reopened, labeled, synchronize] | |
workflow_dispatch: {} | |
env: | |
FORCE_COLOR: "1" | |
jobs: | |
build: | |
if: ${{ github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'run-benchmarks') }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
cache: 'pip' | |
- name: Upgrade nox and uv | |
run: | | |
python -m pip install --upgrade 'nox[uv]' | |
nox --version | |
uv --version | |
- name: Run benchmarks | |
run: nox -s bench |