Skip to content

Commit 5e4ad31

Browse files
authored
Add downstream checks (#20)
1 parent 7ec98f3 commit 5e4ad31

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

.github/workflows/downstream.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Test downstream projects
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
8+
concurrency:
9+
group: downstream-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
ipykernel:
14+
runs-on: ubuntu-latest
15+
timeout-minutes: 15
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
19+
- uses: jupyterlab/maintainer-tools/.github/actions/downstream-test@v1
20+
with:
21+
package_name: ipykernel
22+
23+
ipywidgets:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v4
28+
29+
- name: Base Setup
30+
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
31+
32+
- name: Run Test
33+
uses: jupyterlab/maintainer-tools/.github/actions/downstream-test@v1
34+
with:
35+
package_name: ipywidgets
36+
test_command: pytest -vv -raXxs -k \"not deprecation_fa_icons and not tooltip_deprecation and not on_submit_deprecation\" -W default --durations 10 --color=yes
37+
38+
downstream_check: # This job does nothing and is only used for the branch protection
39+
if: always()
40+
needs:
41+
- ipykernel
42+
- ipywidgets
43+
runs-on: ubuntu-latest
44+
steps:
45+
- name: Decide whether the needed jobs succeeded or failed
46+
uses: re-actors/alls-green@release/v1
47+
with:
48+
jobs: ${{ toJSON(needs) }}

0 commit comments

Comments
 (0)