@@ -3,10 +3,6 @@ name: Downstream
33on :
44 workflow_dispatch :
55 inputs :
6- asdf_ref :
7- description : asdf ref
8- required : true
9- default : master
106 astropy_ref :
117 description : astropy ref
128 required : true
4137 fail-fast : false
4238 matrix :
4339 include :
40+ - package_name : astropy
41+ repository : astropy/astropy
42+ ref : ${{ github.event.inputs.astropy_ref || 'main' }}
43+ test_command : pytest
4444 - package_name : gwcs
4545 repository : spacetelescope/gwcs
4646 ref : ${{ github.event.inputs.gwcs_ref || 'master' }}
@@ -54,33 +54,26 @@ jobs:
5454 ref : ${{ github.event.inputs.specutils_ref || 'main' }}
5555 test_command : pytest
5656 steps :
57- - uses : actions/checkout@v2
57+ - name : Checkout asdf
58+ uses : actions/checkout@v2
59+ with :
60+ fetch-depth : 0
61+ submodules : true
62+ path : asdf
63+ - name : Checkout ${{ matrix.package_name }}
64+ uses : actions/checkout@v2
5865 with :
5966 fetch-depth : 0
6067 repository : ${{ matrix.repository }}
6168 ref : ${{ matrix.ref }}
69+ path : target
6270 - name : Set up Python 3.9
6371 uses : actions/setup-python@v2
6472 with :
6573 python-version : 3.9
6674 - name : Install asdf
67- run : pip install git+https://github.com/ asdf-format/asdf@${{ github.event.inputs.asdf_ref || 'master' }}
75+ run : cd asdf && pip install .
6876 - name : Install remaining ${{ matrix.package_name }} dependencies
69- run : pip install .[test]
77+ run : cd target && pip install -e .[test]
7078 - name : Run ${{ matrix.package_name}} tests
71- run : ${{ matrix.test_command }}
72-
73- astropy :
74- name : astropy@${{ github.event.inputs.astropy_ref || 'main' }} unit tests
75- runs-on : ubuntu-latest
76- steps :
77- - name : Set up Python 3.9
78- uses : actions/setup-python@v2
79- with :
80- python-version : 3.9
81- - name : Install asdf
82- run : pip install git+https://github.com/asdf-format/asdf@${{ github.event.inputs.asdf_ref || 'master' }}
83- - name : Install astropy
84- run : pip install git+https://github.com/astropy/astropy@${{ github.event.inputs.astropy_ref || 'main' }}#egg=astropy[test]
85- - name : Run astropy tests
86- run : pytest --pyargs astropy
79+ run : cd target && ${{ matrix.test_command }}
0 commit comments