update kernel map test #77
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: Deploy Documentation | |
| on: | |
| push: | |
| branches: [ main, master ] | |
| pull_request: | |
| branches: [ main, master ] | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.12' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install --upgrade -r docs/requirements.txt | |
| pip install --upgrade torch torchvision --index-url https://download.pytorch.org/whl/cpu | |
| echo "PYTHONPATH=$PWD" >> $GITHUB_ENV | |
| echo "WARPCONVNET_SKIP_EXTENSION=1" >> $GITHUB_ENV | |
| - name: Show doc tool versions | |
| run: | | |
| python - <<'PY' | |
| import importlib.metadata as metadata | |
| for dist in ("mkdocs", "mkdocstrings", "mkdocstrings-python"): | |
| try: | |
| print(f"{dist}: {metadata.version(dist)}") | |
| except metadata.PackageNotFoundError: | |
| print(f"{dist}: not installed") | |
| PY | |
| - name: Build documentation | |
| run: mkdocs build | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v4 | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: ./site | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| needs: build | |
| if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |