File: tutorialjupytexttests.yml

package info (click to toggle)
gammapy 2.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,800 kB
  • sloc: python: 81,999; makefile: 211; sh: 11; javascript: 10
file content (27 lines) | stat: -rw-r--r-- 671 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
name: TutorialJupytext

on:
  workflow_dispatch:
  schedule:
    - cron: '0 2 * * 5'  # Every Friday at 02:00 UTC

jobs:
  execute-tutorials:
    runs-on: ubuntu-latest
    if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'

    steps:
      - name: Check out repository
        uses: actions/checkout@v6

        with:
          python-version: '3.11'

      - name: Install Gammapy and dependencies
        run: |
          python -m pip install --upgrade pip
          python -m pip install jupytext
          python -m pip install .

      - name: Execute tutorials with Jupytext
        run: jupytext --execute examples/tutorials/*/*.py