Added litestar API endpoints #38
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: [master, develop] | |
| pull_request: | |
| branches: [master, develop] | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint-typecheck-test: | |
| name: Lint, typecheck, test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| cache-dependency-glob: "uv.lock" | |
| - name: Install dependencies | |
| run: uv sync --locked --group api | |
| - name: Ruff lint | |
| run: uv run --group api ruff check osmsg tests | |
| - name: Ruff format check | |
| run: uv run --group api ruff format --check osmsg tests | |
| - name: ty (Astral type checker) | |
| run: uv run --group api ty check osmsg | |
| - name: Pytest (offline) | |
| run: uv run --group api pytest -m "not network" | |
| build: | |
| name: Build wheel + sdist | |
| runs-on: ubuntu-latest | |
| needs: lint-typecheck-test | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| cache-dependency-glob: "uv.lock" | |
| - run: uv build --no-sources | |
| smoke-last-hour: | |
| name: Smoke (process last hour) | |
| runs-on: ubuntu-latest | |
| needs: lint-typecheck-test | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| cache-dependency-glob: "uv.lock" | |
| - run: uv sync --locked --no-group dev | |
| - name: Run osmsg --last hour --summary | |
| run: | | |
| uv run osmsg --last hour --tags building --tags highway --summary -f parquet -f markdown --delete-temp | |
| - name: Show artifacts | |
| run: ls -lh stats.parquet stats.duckdb stats_summary.parquet stats_summary.md |