-
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.
--------- Co-authored-by: Dylan H. Morris <dylanhmorris@users.noreply.github.com>
- Loading branch information
1 parent
ca96421
commit ddee419
Showing
2 changed files
with
44 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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Quarto documents | ||
|
||
on: | ||
pull_request: | ||
branches: [main] | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
render-docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: quarto-dev/quarto-actions/setup@v2 | ||
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
|
||
- name: cache poetry | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.local | ||
key: ${{ runner.os }}-poetry | ||
|
||
- name: install poetry | ||
run: pip install poetry | ||
|
||
- name: install package | ||
run: poetry install -C model | ||
|
||
- name: installing other dependencies | ||
run: poetry run -C model pip install pyyaml nbclient nbformat | ||
|
||
- name: Render documents | ||
run: | | ||
cd model | ||
for file in $(find docs -name '*.qmd'); do | ||
poetry run quarto render $file | ||
done |
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