fix: OrderedDict has no .add(), use key assignment for delivery dedup #62
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/CD | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'runner/**' | |
| - 'app.py' | |
| - 'tests/**' | |
| - 'pyproject.toml' | |
| - '.github/workflows/ci-cd.yml' | |
| tags: | |
| - 'v*' | |
| jobs: | |
| deploy: | |
| name: Deploy | |
| runs-on: ubuntu-latest | |
| concurrency: | |
| group: modal-production-deploy | |
| cancel-in-progress: false | |
| env: | |
| MODAL_TOKEN_ID: ${{ secrets.MODAL_TOKEN_ID }} | |
| MODAL_TOKEN_SECRET: ${{ secrets.MODAL_TOKEN_SECRET }} | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Install Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.10" | |
| - name: Install Dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e ".[dev]" | |
| - name: Run tests | |
| run: pytest tests/ -v | |
| - name: Lint with ruff | |
| run: ruff check runner/ app.py tests/ | |
| - name: Deploy job | |
| run: | | |
| modal deploy app.py |