Skip to content

Gravity v2 - Mars + Earth Radius Update #6439

Gravity v2 - Mars + Earth Radius Update

Gravity v2 - Mars + Earth Radius Update #6439

Workflow file for this run

# Run Tests
name: Test Docs
on:
# Trigger on push or pull request events for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
merge_group:
branches: [ main ]
# Allow running the workflow manually from the Actions tab
workflow_dispatch:
concurrency:
# Cancel any existing CI runs if we push to this branch
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
latest_docs:
runs-on: ubuntu-24.04
timeout-minutes: 90
steps:
- name: Checkout actions
uses: actions/checkout@v6
with:
sparse-checkout: |
.github/actions
path: actions
- name: prepare_docs_environment
uses: ./actions/.github/actions/prepare_environment
with:
NAME: 'latest'
OPENMDAO_PIXI_ENVIRONMENT: 'py313'
OPENMDAO_INSTALL_FROM: 'pypi'
OPENMDAO: ''
SNOPT: '7.7'
DYMOS: 'latest'
SSH_PRIVATE_KEY: ${{secrets.SSH_PRIVATE_KEY}}
SSH_KNOWN_HOSTS: ${{secrets.SSH_KNOWN_HOSTS}}
SNOPT_LOCATION_77: ${{ secrets.SNOPT_LOCATION_77 }}
- name: Check docs linting
shell: bash -l {0}
run: |
eval "$(pixi shell-hook -e py313 --manifest-path=${{ env.PIXI_MANIFEST }})"
echo "============================================================="
echo "Lint the docs"
echo "============================================================="
python aviary/docs/tests/check_jupyter_output_linting.py
- name: Build docs
id: build_docs
shell: bash -l {0}
run: |
eval "$(pixi shell-hook -e py313 --manifest-path=${{ env.PIXI_MANIFEST }})"
pip install -U "jupyter-book<2"
cd aviary/docs
echo "============================================================="
echo "Build the docs"
echo "============================================================="
bash build_book.sh
- name: Display doc build reports
continue-on-error: True
shell: bash -l {0}
if: failure() && steps.build_docs.outcome == 'failure'
run: |
eval "$(pixi shell-hook -e py313 --manifest-path=${{ env.PIXI_MANIFEST }})"
cd $HOME/work/Aviary/Aviary/aviary/docs
find _build/html/reports/ -type f -name '*.log' \
-exec echo "#################################################################" \; \
-exec echo {} \; \
-exec echo "#################################################################" \; \
-exec cat {} \;
- name: Publish docs to github.io
if: |
github.event_name == 'push' && github.ref == 'refs/heads/main'
shell: bash -l {0}
run: |
eval "$(pixi shell-hook -e py313 --manifest-path=${{ env.PIXI_MANIFEST }})"
echo "============================================================="
echo "Publishing Docs to github.io"
echo "============================================================="
pip install ghp-import
cd $HOME/work/Aviary/Aviary/aviary
ghp-import -n -p -f docs/_build/html
- name: Scan for security issues
shell: bash -l {0}
run: |
eval "$(pixi shell-hook -e py313 --manifest-path=${{ env.PIXI_MANIFEST }})"
python -m pip install bandit
echo "============================================================="
echo "Run bandit scan for medium/high severity issues"
echo "============================================================="
cd $GITHUB_WORKSPACE
python -m bandit -r -ll aviary
- name: Checkout actions (again)
uses: actions/checkout@v6
with:
sparse-checkout: |
.github/actions
path: actions