Skip to content

Commit

Permalink
Use self-hosted runner (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
juanep97 authored Mar 19, 2024
1 parent 56144f3 commit 1949d86
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 30 deletions.
42 changes: 12 additions & 30 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ env:


jobs:

static-code-checks:
runs-on: ubuntu-latest
steps:
Expand All @@ -34,21 +35,12 @@ jobs:
with:
python-version: "3.10.9"


tests:
timeout-minutes: 60

runs-on: [self-hosted, x64, Linux, ubuntu, generic]
strategy:
max-parallel: 1
matrix:
include:
- python-version: "3.10.9"
os: ubuntu-latest
- python-version: "3.11"
os: ubuntu-latest

runs-on: ${{ matrix.os }}

python-version: ["3.10.9"]
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -74,13 +66,11 @@ 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: Mount astrometry index file in default location
run: mkdir -p $HOME/.astrometry_cache/5200 && httpdirfs -s --cache 'https://portal.nersc.gov/project/cosmo/temp/dstn/index-5200/LITE/' $HOME/.astrometry_cache/5200/

- name: Check that it was correctly mounted
- name: Use mounted astrometry index files
run: |
ln -s /mnt/astrometry_cache $HOME/.astrometry_cache
- name: Check astrometry index files were correctly mounted
run: ls $HOME/.astrometry_cache/5200/index-5200-00.fits

- name: Download test data
Expand All @@ -91,16 +81,7 @@ jobs:
wget --post-data "pass=$TEST_DATA_PASSWORD" "https://vhega.iaa.es/iop4/iop4testdata.tar.gz?md5sum=$TESTDATA_MD5SUM" -O $HOME/iop4testdata.tar.gz
- 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/

- name: Output some info for debugging
# | true so erros in this step are ignored
run: |
df -h || true
du -sh $HOME/.cache/httpdirfs/ || true
run: pytest -o log_cli=true -o log_cli_level=DEBUG -vxs tests

docs:
runs-on: ubuntu-latest
Expand All @@ -123,5 +104,6 @@ jobs:
pip install -e .[doc]
python -c 'import iop4lib; print(iop4lib.__version__)'
- name: Build docs
run: cd docs && make html
- name: Build the docs
run: |
make docs-sphinx
Binary file added docs/_static/jupyter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1949d86

Please sign in to comment.