Skip to content

Commit 2d24517

Browse files
authored
Merge pull request #495 from adrn/use-nbcollection
Switch to using nbcollection + github actions
2 parents 6358f06 + afd6ce6 commit 2d24517

File tree

112 files changed

+1270
-6725
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+1270
-6725
lines changed

.circleci/config.yml

Lines changed: 0 additions & 71 deletions
This file was deleted.

.circleci/gh-pages-push.sh

Lines changed: 0 additions & 20 deletions
This file was deleted.

.circleci/rtd-push.sh

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"

.github/workflows/build.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Build tutorials
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
release:
10+
types:
11+
- published
12+
13+
jobs:
14+
notebooks:
15+
name: "Execute and convert the notebooks to HTML"
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v2
19+
with:
20+
submodules: true
21+
22+
- name: Set up Python
23+
uses: actions/setup-python@v2
24+
with:
25+
python-version: 3.9
26+
27+
- name: Install dependencies
28+
run: |
29+
sudo apt-get install pandoc
30+
python -m pip install -U pip
31+
python -m pip install -r pip-requirements.txt
32+
python -m pip install git+https://github.com/astropy/nbcollection
33+
34+
- name: Execute the notebooks
35+
run: |
36+
nbcollection execute --timeout=600 --flatten --build-path=. -v tutorials --exclude=conesearch # TODO: remove this exclude!
37+
38+
- name: Convert the notebooks to HTML
39+
run: |
40+
nbcollection convert --flatten --build-path=. -v --make-index --index-template=templates/index.tpl tutorials --exclude=conesearch # TODO: remove this exclude!
41+
42+
- uses: actions/upload-artifact@v2
43+
with:
44+
name: rendered-tutorials-${{ github.sha }}
45+
path: _build

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
.ipynb_checkpoints/
2-
build/
3-
tutorials/rst-tutorials/
4-
tutorials/notebooks/FITS-cubes/Maps/
2+
_build/
53
IPython-*
64
*.fits*
75
*.gz

Makefile

Lines changed: 0 additions & 132 deletions
This file was deleted.

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ channels:
44
- astropy
55

66
dependencies:
7-
- python=3.7
7+
- python=3.9
88
- pip
99
- pip:
1010
- -r pip-requirements.txt

0 commit comments

Comments
 (0)