Skip to content

Commit

Permalink
Rtd action update (#627)
Browse files Browse the repository at this point in the history
* Update run condition for RTD and deduplicate runs.

* Moved RTD to own action.

* Tried to fix action.

* Expand trigger events

* Testing expanding runner events

* Restricted actions
  • Loading branch information
MicahGale authored Dec 19, 2024
1 parent 3c844b6 commit 3b137bd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: CI testing

on:
pull_request:
branches: [develop, alpha-test-dev]
push:
branches: [develop, main, alpha-test]

Expand Down Expand Up @@ -154,15 +155,6 @@ jobs:
cd demo
for file in *.ipynb; do papermill $file foo.ipynb; done
name: Test all demo notebooks
RTD-links:
permissions:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: readthedocs/actions/preview@v1
with:
project-slug: "montepy"
format-test:
runs-on: ubuntu-latest
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/rtd_link.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: add RTD links
on:
pull_request:
types: [opened, reopened, edited]
jobs:
add_rtd_link:
permissions:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: readthedocs/actions/preview@v1
with:
project-slug: "montepy"

0 comments on commit 3b137bd

Please sign in to comment.