-
Notifications
You must be signed in to change notification settings - Fork 28
61 lines (59 loc) · 1.93 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: CI
on:
## uncomment before merging to master once test suite is finalized
# push:
# branches:
# - master
# tags:
# - '*'
pull_request:
branches:
# - master
- pytest-migration #temp
jobs:
pytest:
name: ${{ matrix.runs-on }} Python ${{ matrix.python-version }}
runs-on: ${{ matrix.runs-on }}
env:
CRDS_SERVER_URL: https://hst-crds.stsci.edu
CRDS_TEST_ROOT: /tmp
LD_LIBRARY_PATH: /usr/local/lib
strategy:
fail-fast: false
matrix:
runs-on:
- ubuntu-latest
# - macos-latest # TEMP
python-version:
- 3.9
- '3.10'
- 3.11
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install fitsverify
run: |
wget --quiet --output-document - http://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/cfitsio-3.49.tar.gz | tar -xz -C $HOME
cd $HOME/cfitsio-3.49
./configure --prefix=/usr/local --enable-reentrant --disable-curl
make shared
sudo make install
wget --quiet --output-document - https://heasarc.gsfc.nasa.gov/docs/software/ftools/fitsverify/fitsverify-4.20.tar.gz | tar -xz -C $HOME
cd $HOME/fitsverify-4.20
gcc -o fitsverify ftverify.c fvrf_data.c fvrf_file.c fvrf_head.c fvrf_key.c fvrf_misc.c -DSTANDALONE -lcfitsio
sudo cp fitsverify /usr/local/bin
- name: Install Python dependencies
run: |
pip install roman-datamodels
pip install git+https://github.com/spacetelescope/jwst
pip uninstall --yes crds
./install
pip install .[submission,test,docs,synphot]
./setup_test_cache $CRDS_TEST_ROOT
- name: Run tests
run: ./runtests --cover