Add penalty weight parameter id to removed constraint for inverse lookup #1220
Workflow file for this run
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: Documents | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
jupyter-book: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Environment | |
uses: ./.github/actions/setup-test-environment | |
with: | |
python-version: "3.11" | |
- name: Install OMMX Book dependencies | |
run: pip install -r requirements.txt | |
- name: Build Jupyter Book | |
run: | | |
jupyter-book build doc | |
ERROR_LOGS=$(find doc/_build -type f -name "*.err.log") | |
if [ -n "$ERROR_LOGS" ]; then while IFS= read -r log; do echo "[ERROR LOG] $log" && cat "$log"; done <<< "$ERROR_LOGS" && exit 1; fi | |
- name: Upload HTML | |
uses: actions/upload-artifact@v4 | |
with: | |
name: doc-jupyter-book | |
path: ./doc/_build/html | |
retention-days: 30 | |
protobuf: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Environment | |
uses: ./.github/actions/setup-test-environment | |
- name: Generate API docs | |
run: buf generate --template buf.gen.docs.yaml | |
working-directory: proto | |
- name: Upload HTML | |
uses: actions/upload-artifact@v4 | |
with: | |
name: doc-protobuf | |
path: ./doc | |
retention-days: 30 | |
rust: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Environment | |
uses: ./.github/actions/setup-test-environment | |
- name: Check warnings in documents | |
uses: actions-rs/cargo@v1 | |
with: | |
command: doc | |
args: --no-deps | |
env: | |
RUSTDOCFLAGS: -D warnings | |
- name: Upload HTML | |
uses: actions/upload-artifact@v4 | |
with: | |
name: doc-rust | |
path: ./target/doc | |
retention-days: 30 | |
python: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Environment | |
uses: ./.github/actions/setup-test-environment | |
- name: Install dependencies | |
run: | | |
pip install "python/ommx[dev]" | |
pip install "python/ommx-python-mip-adapter[dev]" | |
- name: Build Python documentation | |
run: | | |
sphinx-build -b html ./python/ommx/docs/source ./python/ommx/docs/build | |
- name: Upload HTML | |
uses: actions/upload-artifact@v4 | |
with: | |
name: doc-python-ommx | |
path: ./python/ommx/docs/build | |
retention-days: 30 | |
- name: Build Python documentation | |
run: | | |
sphinx-build -b html ./python/ommx-python-mip-adapter/docs/source ./python/ommx-python-mip-adapter/docs/build | |
- name: Upload HTML | |
uses: actions/upload-artifact@v4 | |
with: | |
name: doc-python-ommx-python-mip-adapter | |
path: ./python/ommx-python-mip-adapter/docs/build | |
retention-days: 30 | |
package: | |
needs: [jupyter-book, protobuf, rust, python] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download HTML of JupyterBook | |
uses: actions/download-artifact@v4 | |
with: | |
name: doc-jupyter-book | |
path: ./doc | |
- name: Download HTML of protobuf | |
uses: actions/download-artifact@v4 | |
with: | |
name: doc-protobuf | |
path: ./doc | |
- name: Download HTML of rust | |
uses: actions/download-artifact@v4 | |
with: | |
name: doc-rust | |
path: ./doc/rust | |
- name: Download HTML of python | |
uses: actions/download-artifact@v4 | |
with: | |
name: doc-python-ommx | |
path: ./doc/python/ommx | |
- name: Download HTML of python | |
uses: actions/download-artifact@v4 | |
with: | |
name: doc-python-ommx-python-mip-adapter | |
path: ./doc/python/ommx-python-mip-adapter | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: doc | |
path: doc | |
retention-days: 30 | |
deploy: | |
concurrency: | |
group: "pages-deploy" | |
cancel-in-progress: true | |
if: github.ref == 'refs/heads/main' | |
needs: package | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download HTML | |
uses: actions/download-artifact@v4 | |
with: | |
name: doc | |
path: . | |
- name: Configure GitHub Pages | |
uses: actions/configure-pages@v5 | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: "." | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |