Skip to content

Commit 43b9eea

Browse files
authored
Merge pull request #392 from adrn/store-artifacts
Store and restore .astropy/cache
2 parents 28859f8 + 82fd260 commit 43b9eea

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

.circleci/config.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,21 @@ jobs:
3737
- run: *apt-install # run the apt install defined above
3838
- run: *pip-install # run the pip install defined above
3939

40-
# - restore_cache: # Need cache for all tutorial data!
41-
# keys: sample-data-v1
40+
- restore_cache:
41+
keys:
42+
- astropy-cache
4243

4344
- run:
4445
name: Build documentation
4546
command: |
4647
. venv/bin/activate
4748
make html
4849
50+
- save_cache:
51+
key: astropy-cache
52+
paths:
53+
- ~/.astropy/cache/
54+
4955
- store_artifacts:
5056
path: build/html
5157

@@ -59,10 +65,6 @@ jobs:
5965
command: |
6066
bash .circleci/gh-pages-push.sh
6167
62-
# - save_cache: # Specify what paths to cache
63-
# key: sample-data-v1
64-
# paths:
65-
# - ~/sunpy/data/sample_data
6668
6769
notify:
6870
webhooks:

tutorials/notebooks/FITS-cubes/FITS-cubes.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@
9797
"source": [
9898
"# Downloads the HI data in a fits file format\n",
9999
"hi_datafile = download_file(\n",
100-
" 'http://data.astropy.org/tutorials/FITS-cubes/'+'reduced_TAN_C14.fits',\n",
101-
" cache= False, show_progress = True)"
100+
" 'http://data.astropy.org/tutorials/FITS-cubes/reduced_TAN_C14.fits',\n",
101+
" cache=True, show_progress=True)"
102102
]
103103
},
104104
{
@@ -840,7 +840,7 @@
840840
"name": "python",
841841
"nbconvert_exporter": "python",
842842
"pygments_lexer": "ipython3",
843-
"version": "3.6.9"
843+
"version": "3.7.3"
844844
}
845845
},
846846
"nbformat": 4,

0 commit comments

Comments
 (0)