-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed documentation inside the template (#39)
As brought up in [this](#35 (comment)) discussion the documentation should build now without any errors. --------- Co-authored-by: Agriya Khetarpal <[email protected]>
- Loading branch information
1 parent
c76bb32
commit edd627c
Showing
5 changed files
with
46 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -134,3 +134,39 @@ jobs: | |
- name: Test the generated project | ||
working-directory: ./pybamm-example-project | ||
run: nox -s generated-project-tests | ||
|
||
run_generated_project_doctests: | ||
needs: [template_test] | ||
runs-on: ubuntu-latest | ||
name: Generated Project Doctests (ubuntu-latest / Python 3.12) | ||
|
||
steps: | ||
- name: Check out pybamm-cookiecutter repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.12 | ||
|
||
- name: Set up uv | ||
uses: yezz123/setup-uv@v4 | ||
with: | ||
uv-venv: ".venv" | ||
|
||
- name: Install nox | ||
uses: wntrblm/[email protected] | ||
|
||
- name: Install copier and jinja2_time and generate a template with default values | ||
run: | | ||
uv pip install copier jinja2-time | ||
copier copy . ../pybamm-example-project --trust --defaults | ||
- name: Check if the documentation can be built | ||
working-directory: ../pybamm-example-project | ||
run: | | ||
git add . | ||
git commit -am "initial commit" | ||
nox -s docs |
Empty file.
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
Empty file.
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