Skip to content

Update yml

Update yml #3

Workflow file for this run

name: codspeed-benchmarks
on:
pull_request:
branches: [main]
push:
# Note even though this job is called "pre-commit" and runs "pre-commit", this job will run
# also POST-commit on main also! In case there are mishandled merge conflicts / bad auto-resolves
# when merging into main branch.
branches: [main]
jobs:
benchmarks:
runs-on: ubuntu-latest
steps:

Check failure on line 15 in .github/workflows/codespaces.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/codespaces.yml

Invalid workflow file

You have an error in your yaml syntax on line 15
- uses: actions/checkout@v4
- uses: ./.github/actions/setup_build_env
with:
# running vs. one version of Python is OK
# i.e. ruff, black, etc.
python-version: 3.11.5
run-poetry-install: true
shell: bash
create-venv-at-path: .venv
- name: Run benchmarks
uses: CodSpeedHQ/action@v1
with:
token: ${{ secrets.CODSPEED_TOKEN }}
run: poetry run pytest tests/ --codspeed