doc: Skip petab-sciml for now #13306
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: Windows Tests | |
| on: | |
| push: | |
| merge_group: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '48 4 * * *' | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| name: Tests Windows | |
| runs-on: windows-latest | |
| env: | |
| AMICI_SKIP_CMAKE_TESTS: "TRUE" | |
| CFLAGS: "-nologo" | |
| CXXFLAGS: "-nologo" | |
| LDFLAGS: "-nologo" | |
| strategy: | |
| matrix: | |
| python-version: [ "3.11" ] | |
| steps: | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - uses: actions/checkout@v5 | |
| with: | |
| lfs: true | |
| - run: git fetch --prune --unshallow | |
| - shell: bash | |
| run: echo "AMICI_DIR=$(pwd)" >> $GITHUB_ENV | |
| # Developer Command Prompt for Microsoft Visual C++ | |
| - uses: ilammy/msvc-dev-cmd@v1 | |
| - name: Install deps | |
| shell: bash | |
| run: | | |
| python -m pip install --upgrade pip | |
| - name: Create sdist | |
| working-directory: python/sdist | |
| run: pip install build && python -m build --sdist | |
| - name: Install sdist | |
| working-directory: python/sdist | |
| shell: bash | |
| run: pip install -v $(ls -t dist/amici-*.tar.gz | head -1)[petab,test] | |
| - run: python -m amici | |
| - name: Get Pooch Cache Directory | |
| id: get-pooch-cache | |
| run: | | |
| echo "pooch-cache=$(python -c 'import pooch; print(pooch.os_cache("pooch"))')" >> $GITHUB_ENV | |
| shell: bash | |
| - name: Cache Pooch Directory | |
| uses: actions/cache@v4 | |
| with: | |
| path: ${{ env.pooch-cache }} | |
| key: ${{ runner.os }}-py${{ matrix.python-version }}-${{ github.job }} | |
| - name: Run Python tests | |
| shell: bash | |
| run: | | |
| python -m pytest \ | |
| --ignore-glob=*petab* \ | |
| --ignore-glob=*special* \ | |
| --ignore-glob=*test_splines.py \ | |
| python/tests | |
| - name: Python tests splines | |
| if: ${{ github.base_ref == 'master' || github.event.merge_group.base_ref == 'master'}} | |
| run: python -m pytest python/tests/test_splines.py |