Skip to content

Commit

Permalink
Merge pull request #1098 from WilliamJamieson/testing/run_downstream_…
Browse files Browse the repository at this point in the history
…in_pr

Added condition for label to run downstream tests as part of PR
  • Loading branch information
WilliamJamieson authored Mar 2, 2022
2 parents 02e0a83 + 76e661e commit 95eebec
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/downstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ on:
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
Expand All @@ -16,6 +27,7 @@ jobs:
common:
name: ${{ matrix.package_name }}@${{ matrix.ref }} unit tests
runs-on: ubuntu-latest
if: (github.repository == 'asdf-format/asdf' && (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:
Expand All @@ -35,6 +47,11 @@ jobs:
ref: master
install_command: pip install -e .[test]
test_command: pytest
- package_name: roman_datamodels
repository: spacetelescope/roman_datamodels
ref: main
install_command: pip install -e .[test]
test_command: pytest
- package_name: specutils
repository: astropy/specutils
ref: main
Expand Down

0 comments on commit 95eebec

Please sign in to comment.