Skip to content

Commit

Permalink
github actions: minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gmazzamuto committed Jan 13, 2021
1 parent 4ee89c2 commit 4d8b294
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/python-package-and-doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: Python package and documentation

on:
push:
branches: [master]
pull_request:
branches:
- '**:**' # run only for PR from forked repos
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -33,18 +35,19 @@ jobs:
python -m pip install --upgrade pip
pip install . && stitch-align -h && stitch-fuse -h
pip uninstall -y zetastitcher
pip install -r requirements.txt -r requirements-dev.txt
pip install -r requirements-dev.txt
- name: Test
run: make test
- name: Build wheel
run: make
run: pip install wheel && make
- name: sphinx
working-directory: ./doc
env:
PYTHONPATH: ..
run: make html
- name: GitHub Pages
uses: crazy-max/ghaction-github-pages@v2.2.0
if: github.ref == 'refs/heads/master'
with:
build_dir: doc/_build/html
env:
Expand Down

0 comments on commit 4d8b294

Please sign in to comment.