Track: Track1; Team name: yeahkitory; Model: Bundle Neural Networks (BuNN) #820
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: "Docs: Check and Deploy" | |
| on: | |
| push: | |
| branches: [main, github-actions-test] | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.11"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # 1. Setup uv | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| enable-cache: true | |
| cache-dependency-glob: "uv.lock" | |
| # 2. Run your centralized installation script | |
| - name: Install dependencies (via script) | |
| run: | | |
| # This installs '.[all]' which includes doc dependencies | |
| source uv_env_setup.sh | |
| # 3. Install System Dependencies | |
| - name: Install Pandoc | |
| run: sudo apt-get -y install pandoc | |
| # 4. Generate Docs | |
| - name: Generate API Documentation | |
| run: | | |
| source .venv/bin/activate | |
| cd docs | |
| bash generate_api_docs.sh | |
| - name: Generate Docs [Sphinx] | |
| run: | | |
| source .venv/bin/activate | |
| sphinx-build -b html -D version=latest -D release=latest docs docs/_build | |
| # 5. Deploy | |
| - name: Deploy Docs | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository == 'geometric-intelligence/TopoBench' }} | |
| with: | |
| branch: main | |
| folder: docs/_build | |
| token: ${{ secrets.DOCUMENTATION_KEY }} | |
| repository-name: geometric-intelligence/geometric-intelligence.github.io | |
| target-folder: topobench | |
| clean: true |