Skip to content

gh-233: don't run workflows on draft PRs #32

gh-233: don't run workflows on draft PRs

gh-233: don't run workflows on draft PRs #32

Workflow file for this run

name: Test examples
on:
push:
paths:
- "glass/**"
branches:
- main
pull_request:
paths:
- "glass/**"
concurrency:
# Skip intermediate builds: always.
# Cancel intermediate builds: only if it is a pull request build.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
jobs:
if: github.event.pull_request.draft == false

Check failure on line 20 in .github/workflows/examples.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/examples.yml

Invalid workflow file

You have an error in your yaml syntax on line 20
test-examples:
name: Test examples
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: "3.x"
cache: pip
- run: pipx run --spec '.[examples]' jupyter execute examples/**/*.ipynb