Bump Version to v1.12 #50
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: Check and Publish | |
| on: | |
| pull_request: | |
| push: | |
| schedule: | |
| - cron: '22 15 * * 3' | |
| workflow_dispatch: | |
| jobs: | |
| codespell: | |
| name: Codespell | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - run: make qa-codespell | |
| pytest: | |
| name: Python Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - run: make qa-pytest | |
| ruff: | |
| name: Python Format and Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - run: make qa-ruff | |
| documentation: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Build | |
| run: git fetch -a && cd doc && make html | |
| build: | |
| name: Python Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| # include tags and full history for setuptools_scm | |
| fetch-depth: 0 | |
| - run: make build | |
| - uses: actions/upload-artifact@v7 | |
| with: | |
| name: dist | |
| path: dist | |
| publish-production: | |
| name: Publish | |
| if: ${{ github.event_name == 'push' && vars.PUBLISH_PYPI == 'true' && startsWith(github.ref, 'refs/tags') }} | |
| runs-on: ubuntu-latest | |
| needs: | |
| - codespell | |
| - pytest | |
| - ruff | |
| - build | |
| - documentation | |
| permissions: | |
| id-token: write | |
| steps: | |
| - name: Download artifacts from build stage | |
| uses: actions/download-artifact@v8 | |
| with: | |
| name: dist | |
| path: dist/ | |
| - name: Publish distribution package to PyPI | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| with: | |
| attestations: false |