-
Notifications
You must be signed in to change notification settings - Fork 28
80 lines (75 loc) · 1.94 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: CI
on:
## uncomment before merging to master once test suite is finalized
push:
branches:
- master
tags:
- '*'
pull_request:
branches:
- master
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CRDS_TEST_ROOT: /tmp
CRDS_PATH: /tmp/crds-cache-default-test
CRDS_TESTING_CACHE: /tmp/crds-cache-test
CRDS_SERVER_URL: https://hst-crds.stsci.edu
CRDS_CLIENT_RETRY_COUNT: 3
CRDS_CLIENT_RETRY_DELAY_SECONDS: 20
LD_LIBRARY_PATH: /usr/local/lib
defaults:
run:
shell: bash -leo pipefail {0} {0}
jobs:
cache:
uses: ./.github/workflows/cache.yml
pytest:
name: ${{ matrix.runs-on }} Python ${{ matrix.python-version }}
needs: [ cache ]
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
runs-on:
- ubuntu-latest
- macos-latest
python-version:
- '3.10'
- '3.11'
- '3.12'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: mamba-org/setup-micromamba@v1
with:
environment-name: crds-testing
create-args: >-
python=${{ matrix.python-version }}
asdf
astropy
filelock
fitsverify
numpy
parsley
pillow
requests
scipy
six
init-shell: bash
cache-environment: true
cache-downloads: true
- run: pip install roman-datamodels git+https://github.com/spacetelescope/jwst
- run: pip uninstall --yes crds && ./install && pip install .[submission,test,docs,synphot]
- id: cache
uses: actions/cache@v4
with:
path: |
${{ needs.cache.outputs.path }}
${{ needs.cache.outputs.testing_cache }}
key: ${{ needs.cache.outputs.key }}
- run: ./runtests --cover