File: examples.yml

package info (click to toggle)
python-boost-histogram 1.7.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,236 kB
  • sloc: python: 7,940; cpp: 3,243; makefile: 22; sh: 1
file content (31 lines) | stat: -rw-r--r-- 812 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Examples

on:
  workflow_dispatch:
  pull_request:
    paths:
      - "examples/*.py"
      - "notebooks/*.ipynb"
      - ".github/workflows/examples.yml"
  push:
    branches:
      - master

jobs:
  examples:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6
        with:
          fetch-depth: 0
          submodules: true
      - uses: actions/setup-python@v6
        with:
          python-version: "3.10"
      - uses: astral-sh/setup-uv@v7
      - name: Build and install kernel
        run: uv run --group examples -m ipykernel install --user --name boost-hist
      - name: Examples
        run: for f in examples/*.py; do uv run "$f"; done
      - name: Notebooks
        run: uv run jupyter nbconvert --execute --ExecutePreprocessor.timeout=90 --inplace notebooks/*.ipynb