Build Docs Using Conda #304
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: Build Docs Using Conda | |
on: | |
# push: | |
# branches: [master] | |
# branches: [master, devel] | |
pull_request: | |
branches: [devel] | |
workflow_dispatch: | |
# # schedule: | |
# # # * is a special character in YAML so you have to quote this string | |
# # - cron: '*/0 * * * *' # run once a day | |
jobs: | |
pyapprox_unit_tests: | |
name: Build docs with conda-build | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [3.9, '3.10', '3.11'] | |
os: [ubuntu-latest, macos-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Miniconda with Python ${{ matrix.python-version }} on ${{ matrix.os }} | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
activate-environment: pyapprox-base | |
python-version: ${{ matrix.python-version }} | |
channels: defaults | |
environment-file: environment.yml | |
auto-update-conda: true | |
auto-activate-base: false | |
- name: Conda list | |
shell: bash -l {0} # - l {0} is needed to activate created env | |
run: | | |
conda list | |
conda env list | |
- name: Setup PyApprox | |
shell: bash -l {0} | |
run: | | |
python -m pip install -e . --no-build-isolation | |
- name: Setup PyApprox Documentation | |
shell: bash -l {0} | |
run: | | |
python -m pip install -e .[docs] | |
- name: Create PyApprox Documentation | |
shell: bash -l {0} | |
run: | | |
cd docs | |
make html SPHINXOPTS=-vvv |