Skip to content

Publish the learned-heuristic results: a Research view in the workben… #120

Publish the learned-heuristic results: a Research view in the workben…

Publish the learned-heuristic results: a Research view in the workben… #120

Workflow file for this run

name: format
on:
push:
branches: [main]
concurrency:
group: format-main
cancel-in-progress: false
jobs:
format:
runs-on: ubuntu-latest
steps:
# `github.head_ref` is empty on a push event, so the old `ref:` here was
# a no-op that read as if it did something. This workflow only ever runs
# on main; check that out and say so.
- uses: actions/checkout@v7
with:
ref: main
- name: Set up Python
uses: actions/setup-python@v7
with:
python-version: '3.14'
- name: Install formatter dependencies
run: |
python -m pip install --upgrade pip
python -m pip install black
- name: Format with black
run: |
black jupyddl tests tools
# web/dist embeds the jupyddl sources verbatim, and pages.yml refuses to
# deploy a bundle that has drifted from them. Reformatting the sources
# and committing without rebuilding would push main into exactly that
# state, so the rebuild has to ride along in the same commit.
- name: Rebuild the browser bundle so it matches the formatted sources
run: python tools/build_web.py
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v7
with:
commit_message: Apply formatting changes
branch: main