feat(appointments): Enhance search function and update example notebook #48
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
| # This workflow builds and deploys the Sphinx documentation to GitHub Pages. | |
| name: Build and Deploy Docs | |
| on: | |
| push: | |
| branches: ["main"] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| env: | |
| DEBIAN_FRONTEND: noninteractive | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Detect Runner Environment | |
| id: detect_env | |
| run: | | |
| if [ -f "/usr/local/share/ca-certificates/kch_certauth.crt" ]; then | |
| echo "is_act_runner=true" >> $GITHUB_OUTPUT | |
| fi | |
| - name: Perform Local Runner Setup | |
| id: local_setup | |
| if: steps.detect_env.outputs.is_act_runner == 'true' | |
| uses: ./.github/actions/local-setup | |
| with: | |
| gitea-token: ${{ secrets.GITEA_TOKEN }} | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| env: | |
| http_proxy: ${{ env.http_proxy }} | |
| https_proxy: ${{ env.https_proxy }} | |
| AGENT_TOOLSDIRECTORY: /opt/hostedtoolcache | |
| with: | |
| python-version: '3.10.18' | |
| check-latest: false | |
| - name: Fix pip installation | |
| if: steps.detect_env.outputs.is_act_runner == 'true' | |
| run: | | |
| curl -sS https://bootstrap.pypa.io/get-pip.py | python3 - --ignore-installed | |
| python3 -m pip install --upgrade --ignore-installed pip setuptools wheel | |
| - name: Install dependencies | |
| env: | |
| GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} | |
| run: | | |
| pip_install_args=() | |
| if [[ "${{ steps.detect_env.outputs.is_act_runner }}" == "true" ]] && [[ -n "${GITEA_TOKEN}" ]]; then | |
| echo "🔧 Running in act - using local mirror and removing hash requirements" | |
| find . -name "requirements*.txt" -type f -exec sed -i 's/ --hash=sha256:[a-f0-9]*//g' {} \; | |
| pip_install_args+=("--trusted-host" "dh-cap02" "-i" "http://dh-cap02:8008/mirrors/pat2vec") | |
| fi | |
| echo "Installing project dependencies for docs..." | |
| python -m pip install "${pip_install_args[@]}" -e ".[dev]" | |
| - name: Build Sphinx documentation | |
| run: | | |
| python -m sphinx.cmd.build -b html docs/source docs/build/html | |
| - name: Setup Pages | |
| if: steps.detect_env.outputs.is_act_runner != 'true' | |
| uses: actions/configure-pages@v4 | |
| - name: Upload artifact | |
| if: steps.detect_env.outputs.is_act_runner != 'true' | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: docs/build/html | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| needs: build | |
| if: github.server_url == 'https://github.com' | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |