don't use Jupyter-book 2 (#60) #185
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: pytest-all | |
| on: | |
| # Trigger the workflow on push or pull request, | |
| # but only for the main branch | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.12", "3.13", "3.14"] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| allow-prereleases: true | |
| cache: "pip" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Install ppmpy | |
| run: pip install --editable . | |
| - name: Print system info | |
| run: | | |
| echo '::group::NumPy' | |
| pip install threadpoolctl &>/dev/null | |
| python -c "import sys, numpy; print(numpy.__version__); print(sys.version); print(numpy.show_runtime())" | |
| echo '::endgroup::' | |
| echo '::group::CPU info' | |
| lscpu | |
| echo '::endgroup::' | |
| echo '::group::Package versions' | |
| pip list --format=freeze | |
| echo '::endgroup::' | |
| - name: Run tests with pytest | |
| run: pytest -v -s --cov=ppmpy --color=yes |