Skip to content

Commit

Permalink
attempt without httpdirfs
Browse files Browse the repository at this point in the history
  • Loading branch information
juanep97 committed Nov 30, 2023
1 parent 32ab339 commit 767b103
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,23 +72,23 @@ jobs:
- name: Install the package in editable mode with all additional dependencies
run: pip install --editable .[all]

- name: Install httpdirfs to access astrometry index files without downloading them
run: sudo apt install httpdirfs
# - name: Install httpdirfs to access astrometry index files without downloading them
# run: sudo apt install httpdirfs

- uses: actions/cache/restore@v3
id: cache
with:
path: $HOME/.cache/httpdirfs/
key: astrometry_5200_cache
# - uses: actions/cache/restore@v3
# id: cache
# with:
# path: $HOME/.cache/httpdirfs/
# key: astrometry_5200_cache

- name: Debug cache
run: ls $HOME/.astrometry_cache/5200/index-5200-00.fits || true
# - name: Debug cache
# run: ls $HOME/.astrometry_cache/5200/index-5200-00.fits || true

- name: Mount astrometry index file in default location
run: mkdir -p $HOME/.astrometry_cache/5200 && httpdirfs --cache 'https://portal.nersc.gov/project/cosmo/temp/dstn/index-5200/LITE/' $HOME/.astrometry_cache/5200/
# - name: Mount astrometry index file in default location
# run: mkdir -p $HOME/.astrometry_cache/5200 && httpdirfs --cache 'https://portal.nersc.gov/project/cosmo/temp/dstn/index-5200/LITE/' $HOME/.astrometry_cache/5200/

- name: Check that it was correctly mounted
run: ls $HOME/.astrometry_cache/5200/index-5200-00.fits
# - name: Check that it was correctly mounted
# run: ls $HOME/.astrometry_cache/5200/index-5200-00.fits

- name: Download test data
env:
Expand All @@ -100,16 +100,16 @@ jobs:
- name: Run tests (with -o log_cli=true -o log_cli_level=DEBUG to debug CI actions)
run: pytest -o log_cli=true -o log_cli_level=DEBUG -vxs tests/

- uses: actions/cache/save@v3
with:
path: $HOME/.cache/httpdirfs/
key: astrometry_5200_cache
# - uses: actions/cache/save@v3
# with:
# path: $HOME/.cache/httpdirfs/
# key: astrometry_5200_cache

- name: Output some info for debugging
# | true so erros in this step are ignored
run: |
df -h || true
du -sh $HOME/.cache/httpdirfs/ || true
# - name: Output some info for debugging
# # | true so erros in this step are ignored
# run: |
# df -h || true
# du -sh $HOME/.cache/httpdirfs/ || true



Expand Down

0 comments on commit 767b103

Please sign in to comment.