Skip to content

NickAkhmetov/Cap numpy under v2 (#349) #153

NickAkhmetov/Cap numpy under v2 (#349)

NickAkhmetov/Cap numpy under v2 (#349) #153

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
- 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/[email protected]
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