Skip to content

Upgrade requirements #68

Upgrade requirements

Upgrade requirements #68

name: Python package and documentation
on:
push:
pull_request:
branches:
- '**:**' # run only for PR from forked repos
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- uses: actions/cache@v2
with:
path: ${{ env.pythonLocation }}
key: ${{ runner.os }}-pip-${{ hashFiles('./requirements.txt', './requirements-dev.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- uses: actions/cache@v2
with:
path: ~/.local
key: ${{ runner.os }}-pip-${{ hashFiles('./requirements.txt', './requirements-dev.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install . && stitch-align -h && stitch-fuse -h
pip uninstall -y zetastitcher
pip install -r requirements-dev.txt
- name: Test
run: make test
- name: Build wheel
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:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}