|
9 | 9 | - 'python/hdp-langchain/v*' |
10 | 10 | - 'python/hdp-autogen/v*' |
11 | 11 | - 'python/hdp-physical/v*' |
| 12 | + - 'python/llama-index-callbacks-hdp/v*' |
| 13 | + - 'python/hdp-llamaindex/v*' |
12 | 14 | - 'node/hdp-autogen/v*' |
13 | 15 | - 'node/hdp-physical/v*' |
14 | 16 |
|
@@ -707,6 +709,169 @@ jobs: |
707 | 709 | packages-dir: dist/ |
708 | 710 | skip-existing: true |
709 | 711 |
|
| 712 | + # ── llama-index-callbacks-hdp ───────────────────────────────────────────── |
| 713 | + |
| 714 | + test-llama-index-callbacks-hdp: |
| 715 | + name: Test llama-index-callbacks-hdp |
| 716 | + if: startsWith(github.ref, 'refs/tags/python/llama-index-callbacks-hdp/v') |
| 717 | + runs-on: ubuntu-latest |
| 718 | + steps: |
| 719 | + - uses: actions/checkout@v5 |
| 720 | + |
| 721 | + - name: Set up Python |
| 722 | + uses: actions/setup-python@v5 |
| 723 | + with: |
| 724 | + python-version: '3.12' |
| 725 | + |
| 726 | + - name: Install dependencies |
| 727 | + working-directory: packages/llama-index-callbacks-hdp |
| 728 | + run: pip install -e ".[dev]" |
| 729 | + |
| 730 | + - name: Run tests |
| 731 | + working-directory: packages/llama-index-callbacks-hdp |
| 732 | + run: pytest tests/ -v |
| 733 | + |
| 734 | + vet-llama-index-callbacks-hdp: |
| 735 | + name: Build & Vet llama-index-callbacks-hdp (ReleaseGuard) |
| 736 | + needs: test-llama-index-callbacks-hdp |
| 737 | + runs-on: ubuntu-latest |
| 738 | + steps: |
| 739 | + - uses: actions/checkout@v5 |
| 740 | + |
| 741 | + - name: Set up Python |
| 742 | + uses: actions/setup-python@v5 |
| 743 | + with: |
| 744 | + python-version: '3.12' |
| 745 | + |
| 746 | + - name: Install build tools |
| 747 | + run: pip install build |
| 748 | + |
| 749 | + - name: Build distribution |
| 750 | + working-directory: packages/llama-index-callbacks-hdp |
| 751 | + run: python -m build |
| 752 | + |
| 753 | + - name: Vet artifacts with ReleaseGuard |
| 754 | + uses: Helixar-AI/ReleaseGuard@94c067008f3ad516d4b61a6e7163d9d5518a4548 |
| 755 | + with: |
| 756 | + path: packages/llama-index-callbacks-hdp/dist |
| 757 | + config: packages/llama-index-callbacks-hdp/.releaseguard.yml |
| 758 | + sbom: 'true' |
| 759 | + fix: 'true' |
| 760 | + format: sarif |
| 761 | + artifact-name: releaseguard-evidence-llama-index-callbacks-hdp |
| 762 | + |
| 763 | + - name: Upload vetted distribution |
| 764 | + uses: actions/upload-artifact@v4 |
| 765 | + with: |
| 766 | + name: llama-index-callbacks-hdp-dist |
| 767 | + path: packages/llama-index-callbacks-hdp/dist/ |
| 768 | + retention-days: 1 |
| 769 | + |
| 770 | + publish-llama-index-callbacks-hdp: |
| 771 | + name: Publish llama-index-callbacks-hdp to PyPI |
| 772 | + needs: vet-llama-index-callbacks-hdp |
| 773 | + runs-on: ubuntu-latest |
| 774 | + permissions: |
| 775 | + contents: read |
| 776 | + id-token: write |
| 777 | + environment: |
| 778 | + name: pypi-llama-index-callbacks-hdp |
| 779 | + url: https://pypi.org/project/llama-index-callbacks-hdp/ |
| 780 | + steps: |
| 781 | + - name: Download vetted distribution |
| 782 | + uses: actions/download-artifact@v4 |
| 783 | + with: |
| 784 | + name: llama-index-callbacks-hdp-dist |
| 785 | + path: dist/ |
| 786 | + |
| 787 | + - name: Publish to PyPI |
| 788 | + uses: pypa/gh-action-pypi-publish@release/v1 |
| 789 | + with: |
| 790 | + packages-dir: dist/ |
| 791 | + |
| 792 | + # ── hdp-llamaindex (metapackage) ─────────────────────────────────────────── |
| 793 | + |
| 794 | + test-hdp-llamaindex: |
| 795 | + name: Test hdp-llamaindex |
| 796 | + if: startsWith(github.ref, 'refs/tags/python/hdp-llamaindex/v') |
| 797 | + runs-on: ubuntu-latest |
| 798 | + steps: |
| 799 | + - uses: actions/checkout@v5 |
| 800 | + |
| 801 | + - name: Set up Python |
| 802 | + uses: actions/setup-python@v5 |
| 803 | + with: |
| 804 | + python-version: '3.12' |
| 805 | + |
| 806 | + - name: Install primary package |
| 807 | + working-directory: packages/llama-index-callbacks-hdp |
| 808 | + run: pip install -e ".[dev]" |
| 809 | + |
| 810 | + - name: Install metapackage |
| 811 | + working-directory: packages/hdp-llamaindex |
| 812 | + run: pip install -e . |
| 813 | + |
| 814 | + - name: Verify metapackage imports |
| 815 | + run: python -c "from hdp_llamaindex import HdpCallbackHandler, HdpInstrumentationHandler, HdpNodePostprocessor, verify_chain; print('OK')" |
| 816 | + |
| 817 | + vet-hdp-llamaindex: |
| 818 | + name: Build & Vet hdp-llamaindex (ReleaseGuard) |
| 819 | + needs: test-hdp-llamaindex |
| 820 | + runs-on: ubuntu-latest |
| 821 | + steps: |
| 822 | + - uses: actions/checkout@v5 |
| 823 | + |
| 824 | + - name: Set up Python |
| 825 | + uses: actions/setup-python@v5 |
| 826 | + with: |
| 827 | + python-version: '3.12' |
| 828 | + |
| 829 | + - name: Install build tools |
| 830 | + run: pip install build |
| 831 | + |
| 832 | + - name: Build distribution |
| 833 | + working-directory: packages/hdp-llamaindex |
| 834 | + run: python -m build |
| 835 | + |
| 836 | + - name: Vet artifacts with ReleaseGuard |
| 837 | + uses: Helixar-AI/ReleaseGuard@94c067008f3ad516d4b61a6e7163d9d5518a4548 |
| 838 | + with: |
| 839 | + path: packages/hdp-llamaindex/dist |
| 840 | + config: packages/hdp-llamaindex/.releaseguard.yml |
| 841 | + sbom: 'true' |
| 842 | + fix: 'true' |
| 843 | + format: sarif |
| 844 | + artifact-name: releaseguard-evidence-hdp-llamaindex |
| 845 | + |
| 846 | + - name: Upload vetted distribution |
| 847 | + uses: actions/upload-artifact@v4 |
| 848 | + with: |
| 849 | + name: hdp-llamaindex-dist |
| 850 | + path: packages/hdp-llamaindex/dist/ |
| 851 | + retention-days: 1 |
| 852 | + |
| 853 | + publish-hdp-llamaindex: |
| 854 | + name: Publish hdp-llamaindex to PyPI |
| 855 | + needs: vet-hdp-llamaindex |
| 856 | + runs-on: ubuntu-latest |
| 857 | + permissions: |
| 858 | + contents: read |
| 859 | + id-token: write |
| 860 | + environment: |
| 861 | + name: pypi-hdp-llamaindex |
| 862 | + url: https://pypi.org/project/hdp-llamaindex/ |
| 863 | + steps: |
| 864 | + - name: Download vetted distribution |
| 865 | + uses: actions/download-artifact@v4 |
| 866 | + with: |
| 867 | + name: hdp-llamaindex-dist |
| 868 | + path: dist/ |
| 869 | + |
| 870 | + - name: Publish to PyPI |
| 871 | + uses: pypa/gh-action-pypi-publish@release/v1 |
| 872 | + with: |
| 873 | + packages-dir: dist/ |
| 874 | + |
710 | 875 | # ── hdp-physical (TypeScript) ───────────────────────────────────────────── |
711 | 876 |
|
712 | 877 | test-hdp-physical: |
|
0 commit comments