This repository has been archived by the owner on Mar 13, 2024. It is now read-only.
Downstream #74
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Downstream | |
on: | |
workflow_dispatch: | |
schedule: | |
# Run every Monday at 6am UTC | |
- cron: '0 6 * * 1' | |
pull_request: | |
# We also want this workflow triggered if the `Downstream CI` label is | |
# added or present when PR is updated | |
types: | |
- synchronize | |
- labeled | |
push: | |
branches: | |
- '*.*.x' | |
tags: | |
- '*' | |
env: | |
CRDS_SERVER_URL: https://jwst-crds.stsci.edu | |
CRDS_PATH: ~/crds_cache | |
CRDS_CLIENT_RETRY_COUNT: 3 | |
CRDS_CLIENT_RETRY_DELAY_SECONDS: 20 | |
jobs: | |
common: | |
name: ${{ matrix.package_name }} unit tests | |
runs-on: ubuntu-latest | |
if: (github.repository == 'asdf-format/asdf-time-schemas' && (github.event_name == 'schedule' || github.event_name == 'push' || github.event_name == 'workflow_dispatch' || contains(github.event.pull_request.labels.*.name, 'Downstream CI'))) | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- package_name: astropy | |
repository: astropy/astropy | |
install_command: pip install -e .[test] | |
test_command: pytest | |
- package_name: gwcs | |
repository: spacetelescope/gwcs | |
install_command: pip install -e .[test] | |
test_command: pytest | |
- package_name: jwst | |
repository: spacetelescope/jwst | |
install_command: pip install -e .[test] | |
test_command: pytest | |
- package_name: specutils | |
repository: astropy/specutils | |
install_command: pip install -e .[test] | |
test_command: pytest | |
- package_name: weldx | |
repository: BAMWelDX/weldx | |
install_command: pip install -e .[test] | |
test_command: pytest weldx/tests/asdf_tests weldx/schemas --asdf-tests | |
- package_name: sunpy | |
repository: sunpy/sunpy | |
install_command: pip install -e .[tests,all] | |
test_command: pytest sunpy/io/ | |
- package_name: dkist | |
repository: DKISTDC/dkist | |
install_command: pip install -e .[tests] | |
test_command: pytest | |
- package_name: asdf-astropy | |
repository: astropy/asdf-astropy | |
install_command: pip install -e .[test] | |
test_command: pytest | |
- package_name: asdf-standard | |
repository: asdf-format/asdf-standard | |
install_command: pip install -e .[test] | |
test_command: pytest | |
- package_name: asdf-unit-schemas | |
repository: asdf-format/asdf-unit-schemas | |
install_command: pip install -e .[test] | |
test_command: pytest | |
- package_name: asdf-wcs-schemas | |
repository: asdf-format/asdf-wcs-schemas | |
install_command: pip install -e .[test] | |
test_command: pytest | |
- package_name: asdf-coordinates-schemas | |
repository: asdf-format/asdf-coordinates-schemas | |
install_command: pip install -e .[test] | |
test_command: pytest | |
steps: | |
- name: Checkout asdf-time-schemas | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
submodules: true | |
path: asdf-time-schemas | |
- name: Checkout ${{ matrix.package_name }} | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
repository: ${{ matrix.repository }} | |
path: target | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Install asdf-time-schemas | |
run: cd asdf-time-schemas && pip install . | |
- name: Install remaining ${{ matrix.package_name }} dependencies | |
run: cd target && ${{ matrix.install_command }} | |
- name: Pip Freeze | |
run: pip freeze | |
- name: Run ${{ matrix.package_name}} tests | |
run: cd target && ${{ matrix.test_command }} |