Skip to content

Commit 008e6dd

Browse files
Merge pull request #1098 from WilliamJamieson/testing/run_downstream_in_pr
Added condition for label to run downstream tests as part of PR
1 parent 546453f commit 008e6dd

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/downstream.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@ on:
55
schedule:
66
# Run every Monday at 6am UTC
77
- cron: '0 6 * * 1'
8+
pull_request:
9+
# We also want this workflow triggered if the `Downstream CI` label is
10+
# added or present when PR is updated
11+
types:
12+
- synchronize
13+
- labeled
14+
push:
15+
branches:
16+
- '*.*.x'
17+
tags:
18+
- '*'
819

920
env:
1021
CRDS_SERVER_URL: https://jwst-crds.stsci.edu
@@ -16,6 +27,7 @@ jobs:
1627
common:
1728
name: ${{ matrix.package_name }}@${{ matrix.ref }} unit tests
1829
runs-on: ubuntu-latest
30+
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')))
1931
strategy:
2032
fail-fast: false
2133
matrix:
@@ -35,6 +47,11 @@ jobs:
3547
ref: master
3648
install_command: pip install -e .[test]
3749
test_command: pytest
50+
- package_name: roman_datamodels
51+
repository: spacetelescope/roman_datamodels
52+
ref: main
53+
install_command: pip install -e .[test]
54+
test_command: pytest
3855
- package_name: specutils
3956
repository: astropy/specutils
4057
ref: main

0 commit comments

Comments
 (0)