ci: add paths filter and /smoke command workflow #28
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 - app integration test | |
| on: | |
| push: | |
| branches: ["**"] | |
| paths: | |
| - "**.py" | |
| - "pyproject.toml" | |
| - "uv.lock" | |
| - ".github/workflows/ci-app-integration-test.yml" | |
| pull_request: | |
| branches: ["**"] | |
| paths: | |
| - "**.py" | |
| - "pyproject.toml" | |
| - "uv.lock" | |
| - ".github/workflows/ci-app-integration-test.yml" | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| services: | |
| postgres: | |
| image: postgres:17-alpine | |
| env: | |
| POSTGRES_DB: django_thumbnail | |
| POSTGRES_USER: django_thumbnail | |
| POSTGRES_PASSWORD: django_thumbnail | |
| ports: | |
| - 5432:5432 | |
| options: >- | |
| --health-cmd "pg_isready -U django_thumbnail" | |
| --health-interval 5s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| enable-cache: true | |
| - name: Install dependencies | |
| run: uv sync --group dev | |
| - name: Check (lint + format + types) | |
| run: make check | |
| - name: Test | |
| run: make test | |
| - name: Dump postgres logs on failure | |
| if: failure() | |
| run: docker logs "$(docker ps -aqf 'ancestor=postgres:17-alpine')" |