feat: add PipelineContext (#58) #195
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] | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - &uv-install | |
| name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| enable-cache: true | |
| cache-dependency-glob: "uv.lock" | |
| - &uv-python | |
| name: Set up Python | |
| run: uv python install | |
| - &uv-sync | |
| name: Install dependencies | |
| run: uv sync --all-packages --all-extras | |
| format: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - *uv-install | |
| - *uv-python | |
| - *uv-sync | |
| - name: Check formatting with ruff | |
| run: uv run ruff format --check | |
| typecheck: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - *uv-install | |
| - *uv-python | |
| - *uv-sync | |
| - name: Run typecheck with pyrefly | |
| run: uv run pyrefly check | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - *uv-install | |
| - *uv-python | |
| - *uv-sync | |
| - name: Run lint with ruff | |
| run: uv run ruff check | |
| run: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - *uv-install | |
| - *uv-python | |
| - *uv-sync | |
| - name: Run CLI with help flag | |
| run: uv run tq-oracle --help | |
| unittest: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - *uv-install | |
| - *uv-python | |
| - *uv-sync | |
| - name: Run unit tests with pytest | |
| run: uv run pytest | |