Merge pull request #11 from freeplayai/sb/add-mustache-tests-python #31
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: Lint, Type Check, and Test | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.8' | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v4 | |
| with: | |
| version: "latest" | |
| - name: Load cached venv | |
| id: cached-uv-dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: .venv | |
| key: venv-${{ runner.os }}-${{ hashFiles('**/uv.lock') }} | |
| - name: Install dependencies | |
| if: steps.cached-uv-dependencies.outputs.cache-hit != 'true' | |
| run: uv sync --group dev --locked | |
| - name: Type checking | |
| run: make type-check | |
| - name: Lint checking | |
| run: make lint-check | |
| - name: Run tests (PR) | |
| run: make test-ci |