Skip to content

chore: minor tweaks and fixes #188

chore: minor tweaks and fixes

chore: minor tweaks and fixes #188

name: Test solutions
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: '3.11'
- name: Install the dependencies
run: |
python -m pip install nbconvert awkward hist[plot] uproot vector
- name: Test the solutions
working-directory: site/files
run: |
jupyter nbconvert --to python solutions-NO-PEEKING.ipynb
sed 's/^# \(In\[[0-9]*\]:\)/print("\1") #/' solutions-NO-PEEKING.py | sed 's/^import piplite.*//' | sed 's/^await piplite.install//' > solutions-NO-PEEKING-RUN.py
cat -n solutions-NO-PEEKING-RUN.py
python solutions-NO-PEEKING-RUN.py