Skip to content

Add initial species in core before seed mechanism #1391

Add initial species in core before seed mechanism

Add initial species in core before seed mechanism #1391

Workflow file for this run

name: Build Documentation
on:
push:
branches:
- main
pull_request:
jobs:
build-documentation:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
- name: Setup Mambaforge Python 3.7
uses: conda-incubator/setup-miniconda@v2
with:
environment-file: environment.yml
miniforge-variant: Mambaforge
miniforge-version: latest
python-version: 3.7
activate-environment: rmg_env
use-mamba: true
- name: Install sphinx
run: mamba install -y sphinx
- name: Mamba info
run: |
mamba info
mamba list
- name: Install and link Julia dependencies
run: |
julia -e "using Pkg; Pkg.add(PackageSpec(url=\"https://github.com/ReactionMechanismGenerator/ReactionMechanismSimulator.jl\", rev=\"main\"))"
julia -e "using Pkg; Pkg.add(\"PyCall\"); Pkg.add(\"DifferentialEquations\")"
python -c "import julia; julia.install()"
- name: Install and compile RMG
run: |
cd ..
git clone https://github.com/ReactionMechanismGenerator/RMG-database.git
cd RMG-Py
sed -i '/embedsignature/s/# //g' setup.py
make
- name: Make documentation - for testing
if: ${{ github.event_name != 'push' || github.repository != 'ReactionMechanismGenerator/RMG-Py' }}
run: |
cd documentation
sphinx-build -b html -d build/doctrees/ source/ build/html -w errors.log -W --keep-going
- name: Report documentation errors
if: ${{ failure() }}
run: |
cat documentation/errors.log
- name: Make documentation - to publish
if: ${{ github.event_name == 'push' && github.repository == 'ReactionMechanismGenerator/RMG-Py' }}
env:
GH_TOKEN: ${{ secrets.RMG_DEV_TOKEN }}
run: |
make -C documentation continous_integration_setup clean html
- name: Check documentation links
continue-on-error: true
run: |
cd documentation
sphinx-build -b linkcheck -d build/doctrees/ source/ build/linkcheck | grep -e broken -e redirect | grep -v -e 'redirect https://doi.org/' -e 'broken https://doi.org/.* 403 Client Error: Forbidden'
- name: Publish documentation
if: ${{ github.event_name == 'push' && github.repository == 'ReactionMechanismGenerator/RMG-Py' }}
env:
GH_TOKEN: ${{ secrets.RMG_DEV_TOKEN }}
COMMITMESSAGE: "Automatic documentation rebuild"
GIT_AUTHOR_NAME: "RMG Bot"
GIT_AUTHOR_EMAIL: "[email protected]"
GIT_COMMITTER_NAME: "RMG Bot"
GIT_COMMITTER_EMAIL: "[email protected]"
run: |
make -C documentation publish