Periodic CI #27
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
| # This is a separate run of the Python test suite that doesn't cache the tox | |
| # environment and runs from a schedule. The purpose is to test compatibility | |
| # with the latest versions of dependencies. | |
| name: Periodic CI | |
| env: | |
| # Default Python version used for all jobs other than test, which uses a | |
| # matrix of supported versions. Quote the version to avoid interpretation as | |
| # a floating point number. | |
| PYTHON_VERSION: "3.12" | |
| "on": | |
| schedule: | |
| - cron: "0 12 * * 1" | |
| workflow_dispatch: {} | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| strategy: | |
| matrix: | |
| python: | |
| - "3.12" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Run tests in tox | |
| uses: lsst-sqre/run-tox@v1 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| tox-envs: "lint,typing,py" | |
| tox-plugins: tox-uv | |
| use-cache: false | |
| docs: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # full history for setuptools_scm | |
| - name: Install Graphviz | |
| run: sudo apt-get install graphviz | |
| - name: Build docs in tox | |
| uses: lsst-sqre/run-tox@v1 | |
| with: | |
| python-version: ${{ env.PYTHON_VERSION }} | |
| tox-envs: "docs,docs-linkcheck" | |
| tox-plugins: tox-uv | |
| use-cache: false | |
| test-packaging: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| needs: [test, docs] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # full history for setuptools_scm | |
| - name: Build and publish | |
| uses: lsst-sqre/build-and-publish-to-pypi@v3 | |
| with: | |
| python-version: ${{ env.PYTHON_VERSION }} | |
| upload: false | |