Skip to content

point to the right doc url #20

point to the right doc url

point to the right doc url #20

Workflow file for this run

name: Test
on:
push: { branches: [ "master" ] }
pull_request: { branches: [ "master" ] }
concurrency:
group: test-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with: { submodules: recursive }
- uses: conda-incubator/setup-miniconda@v2
with: { miniforge-variant: "Mambaforge", miniforge-version: "latest" }
- name: Install pplpy dependencies
shell: bash -l {0}
run: |
mamba env update --quiet -n test -f environment.yml
conda list
- name: Install pplpy
shell: bash -l {0}
run: |
pip install --verbose --no-index --no-build-isolation .
- name: Install test dependencies
run: |
mamba env update --quiet -n test -f environment.test.yml
conda list
- name: Linter
shell: bash -l {0}
run: |
cython-lint --ignore=E265,E266,E501,E741 --exclude='ppl_decl.pxd' ppl/
- name: Run tests
shell: bash -l {0}
run: |
python setup.py test
- name: Show logs
run: grep "" /dev/null `find -name '*.log'` || true
if: ${{ always() }}
- name: Build documentation
shell: bash -l {0}
run:
sphinx-build docs/source html/pplpy
touch html/pplpy/.nojekyll
- name: Detect broken links
shell: bash -l {0}
run: |
python -m http.server 8880 --directory html &
sleep 1
# We ignore _modules since sphinx puts all modules in the module
# overview but does not generate pages for .pyx modules.
linkchecker --check-extern --ignore-url=_modules/ http://localhost:8880
- uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: html/pplpy/
TARGET_FOLDER: docs/
if: ${{ github.event_name == 'push' }}