Merge pull request #84 from HendrikBorgelt/test_excel_inbox #133
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
| # Built from: | |
| # https://docs.github.com/en/actions/guides/building-and-testing-python | |
| --- | |
| name: Build and test | |
| on: # yamllint disable-line rule:truthy | |
| push: | |
| branches: [main] | |
| pull_request: | |
| # Inbox-only PRs are handled exclusively by excel_inbox.yaml. | |
| # This workflow fires after the excel_inbox bot-commit (which removes the | |
| # inbox file and adds schema changes), so the test matrix runs on the | |
| # correct, already-validated schema — satisfying branch-protection checks. | |
| paths-ignore: | |
| - "inbox/**" | |
| env: | |
| FORCE_COLOR: "1" # Make tools pretty. | |
| permissions: {} | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | |
| fail-fast: false | |
| steps: | |
| # https://github.com/actions/checkout | |
| - name: Check out repository | |
| uses: actions/checkout@v6.0.3 | |
| with: | |
| persist-credentials: false | |
| # https://github.com/astral-sh/setup-uv | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v8.2.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| enable-cache: true | |
| cache-dependency-glob: "uv.lock" | |
| # https://github.com/actions/setup-python | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6.2.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install just | |
| run: | | |
| uv tool install rust-just | |
| - name: Install project | |
| run: uv sync --dev | |
| - name: Regenerate Excel vocabulary from schema | |
| # Keeps docs/assets/coremeta4cat_vocabulary.xlsx up to date | |
| # before any documentation build step uses it. | |
| run: just schema-to-excel | |
| - name: Run test suite | |
| run: just test |