update deployment logic #50
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 Pipeline | |
| on: | |
| push: | |
| branches: [ main, develop ] | |
| pull_request: | |
| branches: [ main, develop ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python 3.11 | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.11' | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v4 | |
| with: | |
| version: "latest" | |
| - name: Cache uv dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/uv | |
| key: ${{ runner.os }}-uv-${{ hashFiles('macro_agents/pyproject.toml', 'macro_agents/uv.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-uv- | |
| - name: Install dependencies with uv | |
| run: | | |
| cd macro_agents | |
| uv sync --dev | |
| - name: Lint with ruff | |
| continue-on-error: true | |
| run: | | |
| cd macro_agents | |
| uv run ruff check . | |
| uv run ruff format --check . | |
| - name: Test Dagster definitions | |
| run: | | |
| cd macro_agents | |
| uv run dg check defs | |
| - name: Test with pytest | |
| run: | | |
| cd macro_agents | |
| uv run pytest tests/ -v -m "not skip_ci" |