ci: add TiaC build and release wheel workflow #1
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: Continuous Integration | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| tags-ignore: | |
| - '**' | |
| pull_request: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '30 0 * * 1' | |
| env: | |
| UV_NO_SYNC: 1 | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: aquaproj/aqua-installer@11dd79b4e498d471a9385aa9fb7f62bb5f52a73c # v4.0.4 | |
| with: | |
| aqua_version: v2.51.2 | |
| - name: Set up workspace | |
| run: | | |
| uv sync --dev --all-extras | |
| - name: Lint by lefthook | |
| run: | | |
| lefthook run pre-commit --all-files | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| max-parallel: 4 | |
| matrix: | |
| python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] | |
| sphinx-version: ['==7.*', '==8.*'] | |
| exclude: # These cases are not supported pair. | |
| - python-version: '3.9' | |
| sphinx-version: '==8.*' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: aquaproj/aqua-installer@11dd79b4e498d471a9385aa9fb7f62bb5f52a73c # v4.0.4 | |
| with: | |
| aqua_version: v2.51.2 | |
| - name: Set up workspace | |
| run: | | |
| echo '${{ matrix.python-version }}' > .python-version | |
| uv sync --group test --extra screenshot | |
| uv run tools/fetch_revealjs.py | |
| uv pip install 'Sphinx[test]${{ matrix.sphinx-version }}' | |
| uv run playwright install chromium | |
| - name: Run tests | |
| run: | | |
| uv run pytest | |
| buildtest: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: aquaproj/aqua-installer@11dd79b4e498d471a9385aa9fb7f62bb5f52a73c # v4.0.4 | |
| with: | |
| aqua_version: v2.51.2 | |
| - name: Build | |
| run: | | |
| uv run tools/fetch_revealjs.py | |
| uv build | |
| ls -l dist | |
| demo-build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: aquaproj/aqua-installer@11dd79b4e498d471a9385aa9fb7f62bb5f52a73c # v4.0.4 | |
| with: | |
| aqua_version: v2.51.2 | |
| - name: 'Configure workspace' | |
| run: | | |
| uv sync --group demo --extra screenshot | |
| uv run tools/fetch_revealjs.py | |
| uv run playwright install chromium | |
| - name: 'Build demo presentation' | |
| run: | | |
| task demo:build-revealjs |