CI issue fixing + tests #2
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: HTTomo docs iris | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
iris-gpu: | |
runs-on: iris-gpu-docs | |
container: | |
image: nvidia/cuda:11.6.2-devel-ubi8 | |
env: | |
NVIDIA_VISIBLE_DEVICES: ${{ env.NVIDIA_VISIBLE_DEVICES }} | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- name: Checkout repository code | |
uses: actions/checkout@v4 | |
- name: Setup Python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: httomo-docs-iris | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
auto-update-conda: false | |
activate-environment: httomo-docs | |
environment-file: ./docs/source/doc-conda-requirements.yml | |
- name: Install httomo-dev | |
run: | | |
micromamba activate httomo | |
pip install .[dev] | |
pip install --upgrade --force-reinstall pillow | |
micromamba list | |
- name: Build api docs | |
run: sphinx-apidoc -feT -t=./docs/source/_templates -o ./docs/source/api ./httomo | |
- name: Generate yaml templates | |
run: | | |
python ./scripts/yaml_templates_generator.py -i ./httomo/methods_database/packages/httomo_modules.yaml -o ./httomo/yaml_templates/httomo | |
python ./scripts/yaml_templates_generator.py -i ./httomo/methods_database/packages/external/tomopy/tomopy_modules.yaml -o ./httomo/yaml_templates/tomopy | |
python ./scripts/yaml_unsupported_tomopy_remove.py -t ./httomo/yaml_templates/tomopy -l ./httomo/methods_database/packages/external/tomopy/tomopy.yaml | |
python ./scripts/yaml_templates_generator.py -i ./httomo/methods_database/packages/external/httomolib/httomolib_modules.yaml -o ./httomo/yaml_templates/httomolib | |
python ./scripts/yaml_templates_generator.py -i ./httomo/methods_database/packages/external/httomolibgpu/httomolibgpu_modules.yaml -o ./httomo/yaml_templates/httomolibgpu | |
- name: Generate yml docs | |
run: python ./docs/source/yaml_doc_generator.py | |
- name: Build html | |
run: sphinx-build -a -E -b html ./docs/source/ ./docs/build/ | |
- name: Publish docs | |
if: github.ref_type == 'tag' || github.ref_name == 'main' | |
run: ghp-import -n -p -f ./docs/build | |
env: | |
GITHUB_TOKEN: ${{ github.token }} |