Use same CytoDataFrame in multiple Jupyter cells (#131) #90
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
--- | |
# used for publishing documentation on push to main or published release | |
name: publish docs | |
on: | |
push: | |
branches: | |
- main | |
release: | |
types: | |
- published | |
jobs: | |
build: | |
# only build and deploy docs if the actor is not dependabot | |
if: ${{ github.actor != 'dependabot[bot]' }} | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- name: Setup for poetry | |
run: | | |
python -m pip install poetry poetry-dynamic-versioning | |
- name: Simulate version tag for cosmicqc install compatibility | |
run: | | |
poetry version 99.0.0 | |
- name: poetry deps | |
run: poetry install | |
- name: Build documentation | |
run: | | |
mkdir pages | |
touch pages/.nojekyll | |
cd docs | |
poetry run sphinx-build src build | |
# remove any doctrees dirs which aren't needed for publishing | |
find ./build -type d -name '.doctrees' -exec rm -rf {} + | |
cp -r build/* ../pages/ | |
- name: Deploy documentation | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: pages | |
folder: pages | |
- name: Reset version to 0.0.0 | |
run: | | |
poetry version 0.0.0 |