Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor CI Update #144

Merged
merged 3 commits into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/common_merge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ name: Common Merge Workflow
on:
workflow_call:
inputs:
bump_tag:
description: "Whether or not to bump the tag of the commit"
type: booolean
required: false
default: true
doc_target:
description: "The name of the documentation target. Set to 'Sphinx' to skip doxygen"
type: string
Expand All @@ -44,6 +49,7 @@ on:
jobs:
# Bump the version tag
bump_tag:
if: inputs.bump_tag == true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
13 changes: 9 additions & 4 deletions nwx_build_environment/scripts/generate_module_dox.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
import glob
import sys
import importlib

"""This script will generate the module api documentation for a plugin library.

Usage
Expand Down Expand Up @@ -30,9 +30,15 @@
# Add paths to libraries
cwd = os.getcwd()
build_dir = os.path.join(cwd, "build")
pluginplay_dir = os.path.join(cwd, "build", "_deps", "pluginplay-build")
sys.path.append(build_dir)
sys.path.append(pluginplay_dir)

pythonsrc_dir = os.path.join(cwd, "src", "python")
sys.path.append(pythonsrc_dir)

deps_dir = os.path.join(cwd, "build", "_deps")
deps_builds = glob.glob("*-build/", root_dir=deps_dir)
for build in deps_builds:
sys.path.append(os.path.join(deps_dir, build))

# Exit on any exception
try:
Expand All @@ -47,4 +53,3 @@
except Exception as e:
print(f"An exception caught: {e}")
sys.exit()