Release 1.0.7 #719
Workflow file for this run
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 notebooks | |
| # Run the notebooks from the tenpy/tenpy_notebooks repo | |
| on: | |
| # pushes to main | |
| push: | |
| branches: | |
| - main | |
| # PRs | |
| pull_request: | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| jobs: | |
| build: | |
| if: github.event.pull_request.draft == false | |
| runs-on: ubuntu-latest | |
| env: | |
| # make pytest output in color | |
| PY_COLORS: 1 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: 3.13 | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install --upgrade setuptools build | |
| python -m pip install --upgrade pytest nbmake | |
| python -m pip install --upgrade numpy scipy matplotlib pyyaml h5py | |
| - name: Build and install tenpy | |
| run: | | |
| python -m build . | |
| python -m pip install . | |
| - name: Show tenpy config | |
| working-directory: .. | |
| run: | | |
| python -c "import tenpy; tenpy.show_config()" | |
| - name: Run pytest on notebooks | |
| # Note: we exclude the dmrg mixer notebook 12, since it runs very long. | |
| # Note: unlike in the codebase, we ignore warnings (``-W ignore`` flag) | |
| run: | | |
| pytest --nbmake notebooks \ | |
| --ignore=notebooks/12_dmrg_mixer.ipynb \ | |
| -W ignore |