CHORE: Bump the python-minor-patch group with 4 updates #219
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: CI | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| jobs: | |
| lint: | |
| name: Lint & format | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| - name: Install dev deps | |
| run: uv sync --group dev | |
| - name: Ruff lint | |
| run: uv run ruff check quadletman/ | |
| - name: Ruff format check | |
| run: uv run ruff format --check quadletman/ | |
| test-python: | |
| name: Python tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| - name: Install dev deps | |
| run: uv sync --group dev | |
| - name: Run pytest with coverage | |
| run: uv run pytest --cov=quadletman --cov-report=xml --cov-report=term-missing --junit-xml=test-results.xml | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v6 | |
| with: | |
| files: coverage.xml | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| - name: Upload test results to Codecov | |
| if: ${{ !cancelled() }} | |
| uses: codecov/codecov-action@v6 | |
| with: | |
| report_type: test_results | |
| files: test-results.xml | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| test-js: | |
| name: JavaScript tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: "20" | |
| cache: "npm" | |
| - name: Install JS deps | |
| run: npm ci | |
| - name: Run Vitest | |
| run: npm test | |
| tailwind-check: | |
| name: Tailwind CSS up to date | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| - name: Install dev deps | |
| run: uv sync --group dev | |
| - name: Rebuild Tailwind | |
| env: | |
| TAILWINDCSS_VERSION: "v4.2.2" | |
| run: | | |
| uv run tailwindcss \ | |
| -i quadletman/static/src/app.css \ | |
| -o quadletman/static/src/tailwind.css \ | |
| --minify | |
| - name: Check for uncommitted diff | |
| run: | | |
| if ! git diff --exit-code quadletman/static/src/tailwind.css; then | |
| echo "tailwind.css is out of date — run 'uv run tailwindcss -i ... --minify' and commit the result." | |
| exit 1 | |
| fi | |
| babel-check: | |
| name: Babel .mo files up to date | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| - name: Install dev deps | |
| run: uv sync --group dev | |
| - name: Recompile message catalogs | |
| run: uv run pybabel compile -d quadletman/locale -D quadletman | |
| - name: Check for uncommitted diff | |
| run: | | |
| if ! git diff --exit-code quadletman/locale/; then | |
| echo ".mo files are out of date — run 'uv run pybabel compile ...' and commit the result." | |
| exit 1 | |
| fi |