Merge pull request #230 from TemoaProject/maintainance/license_transf… #356
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: CI | |
| on: | |
| push: | |
| branches: | |
| [ | |
| "main", | |
| "temoa_alpha", | |
| "ci_testing", | |
| "1.0.0-dev-operator", | |
| "temoa_davey_code", | |
| "unstable", | |
| ] | |
| pull_request: | |
| branches: | |
| [ | |
| "main", | |
| "temoa_alpha", | |
| "ci_testing", | |
| "1.0.0-dev-operator", | |
| "temoa_davey_code", | |
| "unstable", | |
| ] | |
| jobs: | |
| test: | |
| name: setup and test | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| python-version: ["3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| version: "0.9.6" | |
| python-version: ${{ matrix.python-version }} | |
| enable-cache: true | |
| - name: Install the project | |
| run: uv sync --locked --all-extras --dev | |
| - name: Install Graphviz (Ubuntu) | |
| if: runner.os == 'Linux' | |
| run: sudo apt-get install -y graphviz | |
| - name: Install Graphviz (macOS) | |
| if: runner.os == 'macOS' | |
| run: brew install graphviz | |
| - name: Install Graphviz (Windows) | |
| if: runner.os == 'Windows' | |
| run: choco install graphviz -y | |
| - name: Run tests | |
| env: | |
| CI: 1 | |
| run: uv run pytest tests | |
| type-check: | |
| name: type check | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.12"] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| version: "0.9.6" | |
| python-version: ${{ matrix.python-version }} | |
| enable-cache: true | |
| - name: Install the project | |
| run: uv sync --locked --all-extras --dev | |
| - name: Run mypy | |
| run: uv run mypy --config-file=pyproject.toml . |