Add JsonWrapper class (#386) #171
This file contains 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 | |
# 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 | |
- name: Install system dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y pandoc | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: '3.9' | |
- name: Install vitessce | |
run: pip install -e .[dev,docs,all] | |
- name: Run tests | |
run: pytest | |
- name: Build a binary wheel and a source tarball | |
run: >- | |
python -m | |
build | |
--sdist | |
--wheel | |
--outdir dist/ | |
. | |
- name: Build docs | |
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 |