Lock file maintenance (#128) #491
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 | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - "master" | |
| - "next" | |
| workflow_dispatch: | |
| jobs: | |
| execute_notebooks: | |
| name: Execute notebooks | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| path: freud-examples | |
| - name: Create Python Environment | |
| uses: prefix-dev/setup-pixi@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4 | |
| with: | |
| pixi-version: v0.54.1 | |
| cache: false | |
| activate-environment: true | |
| manifest-path: freud-examples/pixi.toml | |
| - name: Display freud version | |
| run: |- | |
| python3 -c "import freud; print(freud.__version__)" | |
| # clone the tutorials and run them | |
| - name: List notebooks | |
| run: ls **/*.ipynb | |
| working-directory: freud-examples | |
| - name: Execute notebooks | |
| run: | | |
| for i in examples module_intros | |
| do | |
| echo "Running notebooks in: $i" && jupyter nbconvert --execute --inplace $i/*.ipynb || exit 1 | |
| done | |
| working-directory: freud-examples |