chore: minor tweaks and fixes #188
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |