fix: remove unused astro-d2 integration #11
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: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install linting tools | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install ruff mypy | |
| - name: Install packages for type checking | |
| run: | | |
| pip install pydantic langchain-core | |
| cd packages/promptpack && pip install -e . | |
| cd ../promptpack-langchain && pip install -e . | |
| - name: Run ruff linter on packages | |
| run: ruff check packages/ | |
| - name: Run ruff linter on examples | |
| run: ruff check examples/ | |
| - name: Run ruff formatter check on packages | |
| run: ruff format --check packages/ | |
| - name: Run ruff formatter check on examples | |
| run: ruff format --check examples/ | |
| - name: Run mypy on promptpack | |
| run: mypy packages/promptpack/src/promptpack --ignore-missing-imports | |
| - name: Run mypy on promptpack-langchain | |
| run: mypy packages/promptpack-langchain/src/promptpack_langchain --ignore-missing-imports | |
| test: | |
| name: Test (Python ${{ matrix.python-version }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pytest pytest-asyncio pytest-cov | |
| - name: Install promptpack package | |
| run: | | |
| cd packages/promptpack | |
| pip install -e ".[dev]" | |
| - name: Install promptpack-langchain package | |
| run: | | |
| cd packages/promptpack-langchain | |
| pip install -e ".[dev]" | |
| - name: Run promptpack tests | |
| run: | | |
| cd packages/promptpack | |
| pytest tests/ -v --tb=short --cov=src/promptpack --cov-report=xml:coverage-promptpack.xml | |
| - name: Run promptpack-langchain tests | |
| run: | | |
| cd packages/promptpack-langchain | |
| pytest tests/ -v --tb=short --cov=src/promptpack_langchain --cov-report=xml:coverage-langchain.xml | |
| - name: Upload coverage reports | |
| uses: codecov/codecov-action@v4 | |
| if: matrix.python-version == '3.12' | |
| with: | |
| files: packages/promptpack/coverage-promptpack.xml,packages/promptpack-langchain/coverage-langchain.xml | |
| fail_ci_if_error: false | |
| examples: | |
| name: Verify Examples | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pytest | |
| - name: Install packages | |
| run: | | |
| cd packages/promptpack && pip install -e . | |
| cd ../promptpack-langchain && pip install -e . | |
| - name: Run basic_usage example | |
| run: python examples/basic_usage.py | |
| - name: Run tools_example | |
| run: python examples/tools_example.py | |
| - name: Run validation_example | |
| run: python examples/validation_example.py |