tests: fix linting error #104
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: docs | |
on: | |
push: | |
branch: [master] | |
jobs: | |
build: | |
name: Deploy docs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout master | |
uses: actions/checkout@v2 | |
- name: Setup Python 3.8 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
# - name: Setup conda | |
# uses: s-weigand/[email protected] | |
# with: | |
# python-version: 3.8 | |
# activate-conda: false | |
# - name: Install dependencies | |
# run: | | |
# pip3 install -r docs/requirements.txt | |
# pip3 install -r requirements.txt | |
# pip3 install -e . | |
# python -m ipykernel install --user --name=py38 | |
- name: Set up poetry | |
uses: abatilo/actions-poetry@v3 | |
with: | |
poetry-version: "1.8.3" | |
- name: Poetry install | |
run: poetry install | |
- name: Build docs site | |
run: poetry run mkdocs build | |
- name: Deploy to github pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./site | |
#- name: Set up git | |
# run: | | |
# git config --global user.name "${GITHUB_ACTOR}" | |
# git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com" | |
# git remote rm origin | |
# git remote add origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git | |
#- name: Deploy docs | |
# run: mkdocs gh-deploy --config-file "${GITHUB_WORKSPACE}/mkdocs.yml" --force | |
# - name: Install picea / Deploy docs | |
# run: | | |
# pip3 install mkdocs | |
# pip3 install -r requirements.txt | |
# pip3 install -e . | |
# git config --global user.name "${GITHUB_ACTOR}" | |
# git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com" | |
# git remote rm origin | |
# git remote add origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git | |
# mkdocs gh-deploy --config-file "${GITHUB_WORKSPACE}/mkdocs.yml" --force | |
# - name: Deploy docs | |
# uses: mhausenblas/mkdocs-deploy-gh-pages@master | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# REQUIREMENTS: docs/requirements.txt |