Skip to content

Fix spatialdata configuration (#396) #176

Fix spatialdata configuration (#396)

Fix spatialdata configuration (#396) #176

Workflow file for this run

name: Deploy
# Reference: https://github.com/alex-page/alexpage.dev/commit/717efbcc57d0c8ce9f64d28526263610ea444823
on:
push:
branches: main
permissions:
contents: read
pages: write
id-token: write
jobs:
pre_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: astral-sh/setup-uv@v3
with:
version: "latest"
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y pandoc
- name: Install vitessce
run: uv sync --extra dev --extra docs --extra all
- name: Run tests
run: uv run pytest
- name: Build a binary wheel and a source tarball
run: uv build --sdist --wheel
- name: Build docs
run: |
uv run make html
touch docs-dist/html/.nojekyll
- uses: actions/upload-pages-artifact@v1
with:
path: ./docs-dist/html
- name: Deploy package to PyPI
continue-on-error: true
uses: pypa/gh-action-pypi-publish@v1.4.1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
deploy:
runs-on: ubuntu-latest
needs: pre_deploy
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1