Skip to content

Commit c810798

Browse files
Merge pull request #45 from asdf-format/testing/downstream
Add downstream testing
1 parent 009edcd commit c810798

File tree

2 files changed

+109
-0
lines changed

2 files changed

+109
-0
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: CI
22

33
on:
4+
workflow_dispatch:
45
push:
56
branches:
67
- master

.github/workflows/downstream.yml

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
name: Downstream
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
# Run every Monday at 6am UTC
7+
- cron: '0 6 * * 1'
8+
9+
env:
10+
CRDS_SERVER_URL: https://jwst-crds.stsci.edu
11+
CRDS_PATH: ~/crds_cache
12+
CRDS_CLIENT_RETRY_COUNT: 3
13+
CRDS_CLIENT_RETRY_DELAY_SECONDS: 20
14+
15+
jobs:
16+
common:
17+
name: ${{ matrix.package_name }}@${{ matrix.ref }} unit tests
18+
runs-on: ubuntu-latest
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
include:
23+
- package_name: astropy
24+
repository: astropy/astropy
25+
ref: main
26+
install_command: pip install -e .[test]
27+
test_command: pytest
28+
- package_name: gwcs
29+
repository: spacetelescope/gwcs
30+
ref: master
31+
install_command: pip install -e .[test]
32+
test_command: pytest
33+
- package_name: jwst
34+
repository: spacetelescope/jwst
35+
ref: master
36+
install_command: pip install -e .[test]
37+
test_command: pytest
38+
- package_name: specutils
39+
repository: astropy/specutils
40+
ref: main
41+
install_command: pip install -e .[test]
42+
test_command: pytest
43+
- package_name: weldx
44+
repository: BAMWelDX/weldx
45+
ref: master
46+
install_command: pip install -e .[test]
47+
test_command: pytest weldx/tests/asdf_tests weldx/schemas --asdf-tests
48+
- package_name: sunpy
49+
repository: sunpy/sunpy
50+
ref: main
51+
install_command: pip install -e .[tests,all]
52+
test_command: pytest sunpy/io/
53+
- package_name: dkist
54+
repository: DKISTDC/dkist
55+
ref: main
56+
install_command: pip install -e .[tests]
57+
test_command: pytest
58+
- package_name: asdf-astropy
59+
repository: astropy/asdf-astropy
60+
ref: main
61+
install_command: pip install -e .[test]
62+
test_command: pytest
63+
- package_name: asdf-standard
64+
repository: asdf-format/asdf-standard
65+
ref: master
66+
install_command: pip install -e .[test]
67+
test_command: pytest
68+
- package_name: asdf-transform-schemas
69+
repository: asdf-format/asdf-transform-schemas
70+
ref: master
71+
install_command: pip install -e .[test]
72+
test_command: pytest
73+
- package_name: asdf-wcs-schemas
74+
repository: asdf-format/asdf-wcs-schemas
75+
ref: main
76+
install_command: pip install -e .[test]
77+
test_command: pytest
78+
- package_name: asdf-coordinates-schemas
79+
repository: asdf-format/asdf-coordinates-schemas
80+
ref: main
81+
install_command: pip install -e .[test]
82+
test_command: pytest
83+
steps:
84+
- name: Checkout asdf-transform-schemas
85+
uses: actions/checkout@v2
86+
with:
87+
fetch-depth: 0
88+
submodules: true
89+
path: asdf-transform-schemas
90+
- name: Checkout ${{ matrix.package_name }}
91+
uses: actions/checkout@v2
92+
with:
93+
fetch-depth: 0
94+
repository: ${{ matrix.repository }}
95+
ref: ${{ matrix.ref }}
96+
path: target
97+
- name: Set up Python 3.9
98+
uses: actions/setup-python@v2
99+
with:
100+
python-version: 3.9
101+
- name: Install asdf-transform-schemas
102+
run: cd asdf-transform-schemas && pip install .
103+
- name: Install remaining ${{ matrix.package_name }} dependencies
104+
run: cd target && ${{ matrix.install_command }}
105+
- name: Pip Freeze
106+
run: pip freeze
107+
- name: Run ${{ matrix.package_name}} tests
108+
run: cd target && ${{ matrix.test_command }}

0 commit comments

Comments
 (0)