fix(tests): add missing runoff_area.shp #70
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
# from pyproj: https://github.com/pyproj4/pyproj/blob/master/.github/workflows/build_docs.yaml | |
name: Publish Docs | |
on: | |
push: | |
branches: [ master, develop ] | |
jobs: | |
docs: | |
name: Publish Docs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
- name: Fetch all Git tags | |
run: git fetch --prune --unshallow --tags | |
- name: Cache Miniconda | |
uses: actions/cache@v2.1.0 | |
env: | |
# Increase this value to reset cache if environment.yml has changed | |
CACHE_NUMBER: 0 | |
with: | |
path: ~/conda_pkgs_dir | |
key: ${{ runner.os }}-${{ matrix.python-version }}-${{ | |
matrix.run-type }}-${{ env.CACHE_NUMBER }}-${{ | |
hashFiles('ci/test_environment.yml') }} | |
- name: Setup conda environment | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
auto-update-conda: true | |
activate-environment: sfrmaker_ci | |
environment-file: ci/test_environment.yml | |
python-version: '3.10' | |
auto-activate-base: false | |
# must be false in most cases | |
# https://github.com/JamesIves/github-pages-deploy-action | |
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly! | |
- name: Conda info | |
shell: bash -l {0} | |
run: conda info | |
- name: Install dependencies | |
shell: bash -l {0} | |
run: | | |
if [[ ! -d "$HOME/.local/bin" ]]; then | |
mkdir -p "$HOME/.local/bin"; | |
fi | |
# copy modflow bins to local dir to add to PATH later | |
if [ "$RUNNER_OS" == "Windows" ]; then | |
d="win" | |
elif [ "$RUNNER_OS" == "macOS" ]; then | |
d="mac" | |
elif [ "$RUNNER_OS" == "Linux" ]; then | |
d="linux" | |
else | |
d="unexpectedos" | |
exit 1 | |
fi | |
echo bin/$d/. >> $GITHUB_PATH | |
echo $GITHUB_PATH | |
pip install --upgrade -e . | |
python -m ipykernel install --user --name sfrmaker_ci --display-name "sfrmaker_ci" | |
- name: Conda list | |
shell: bash -l {0} | |
run: conda list | |
- name: Run tests | |
shell: bash -l {0} | |
run: | | |
pytest -v --durations=20 | |
- name: Build docs | |
shell: bash -l {0} | |
run: | | |
set -e | |
make -C docs html | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@3.7.1 | |
if: ${{ github.event_name == 'push' }} | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages | |
FOLDER: docs/build/html | |
CLEAN: false | |
TARGET_FOLDER: latest |