Merge pull request #283 from moorepants/switch-to-miniforge #333
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: docs | |
on: [push, pull_request] | |
# cancels prior builds for this workflow when new commit is pushed | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Build and generate documentation | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ['3.12'] | |
ipopt-version: ['3.14'] | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- name: Checkout CyIpopt | |
uses: actions/checkout@v3 | |
- uses: conda-incubator/setup-miniconda@v3 | |
with: | |
auto-update-conda: true | |
activate-environment: test-environment | |
python-version: ${{ matrix.python-version }} | |
channels: conda-forge | |
conda-remove-defaults: "true" | |
miniforge-version: latest | |
- name: Install basic dependencies | |
run: conda install -y -v lapack "libblas=*=*netlib" "cython>=0.29.28" "ipopt=${{ matrix.ipopt-version }}" numpy>=1.25 pkg-config>=0.29.2 setuptools>=44.1.1 --file docs/requirements.txt | |
- name: Install CyIpopt | |
run: | | |
rm pyproject.toml | |
python -m pip install . | |
conda list | |
- name: Test building documentation | |
run: cd docs && make clean && make html && cd .. |