-
-
Notifications
You must be signed in to change notification settings - Fork 8
80 lines (64 loc) · 1.99 KB
/
Copy pathdownstream-tests.yml
File metadata and controls
80 lines (64 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: Downstream Tests
on:
pull_request:
jobs:
downstream:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- repo: jupyterlab/jupyterlab
name: jupyterlab
- repo: jupyter/notebook
name: notebook
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Base Setup
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
- name: Install Builder
run: |
pip install hatchling>=1.21.1
python -m pip install .
- name: Install dependencies
run: jlpm install
- name: Build TypeScript
run: jlpm build:prod
- name: Pack npm tarball
run: npm pack
- name: Checkout ${{ matrix.name }}
uses: actions/checkout@v7
with:
repository: ${{ matrix.repo }}
path: downstream
- name: Patch root package.json resolutions
run: |
TARBALL=$(realpath jupyter-builder-*.tgz)
echo "Using tarball: $TARBALL"
jq --arg t "file:$TARBALL" \
'.resolutions["@jupyter/builder"] = $t' \
downstream/package.json > tmp.json && mv tmp.json downstream/package.json
echo "--- Patched resolution ---"
jq '.resolutions["@jupyter/builder"]' downstream/package.json
- name: Install deps
working-directory: downstream
run: YARN_ENABLE_IMMUTABLE_INSTALLS=false jlpm install
- name: Test `jlpm workspaces foreach` command
working-directory: downstream
continue-on-error: true
run: |
jlpm workspaces foreach --parallel exec sh -c 'echo Hello from $PWD'
- name: Build ${{ matrix.name }}
working-directory: downstream
run: jlpm build
- name: Build wheel
working-directory: downstream
run: |
pip install build
python -m build --wheel
- name: Upload wheel
uses: actions/upload-artifact@v7
with:
name: ${{ matrix.name }}-wheel
path: downstream/dist/*.whl
if-no-files-found: error