Validate and Build #452
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: Validate and Build | |
| on: | |
| push: | |
| schedule: | |
| - cron: "0 9 * * SUN" | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| python-version: ["3.10", "3.11", "3.12", "3.13"] | |
| defaults: | |
| run: | |
| shell: bash | |
| name: ${{ matrix.os }} with py${{ matrix.python-version }} | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install uv and set the python version | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install the project | |
| run: uv sync --all-extras --dev | |
| - name: Validate, build, and test | |
| run: uv run doit | |
| - name: Upload Build Content | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: build-content-${{ matrix.os }}-py${{ matrix.python-version }} | |
| path: build |