-
Notifications
You must be signed in to change notification settings - Fork 223
136 lines (129 loc) · 3.89 KB
/
build.yml
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
name: Builds
on:
push:
pull_request:
jobs:
build:
runs-on: ${{ matrix.os }}
env:
ASYNC_TEST_TIMEOUT: 30
CONDA_HOME: /usr/share/miniconda
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
clean: true
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
- name: Display dependency info
run: |
python --version
pip --version
conda --version
- name: Add SBT launcher
run: |
mkdir -p $HOME/.sbt/launchers/1.3.12
curl -L -o $HOME/.sbt/launchers/1.3.12/sbt-launch.jar https://repo1.maven.org/maven2/org/scala-sbt/sbt-launch/1.3.12/sbt-launch.jar
- name: Install Python dependencies
run: |
pip install ".[test]"
- name: Build and install Jupyter Enterprise Gateway
uses: nick-invision/[email protected]
with:
timeout_minutes: 10
max_attempts: 2
command: |
make clean dist enterprise-gateway-demo test-install-wheel
- name: Log current Python dependencies version
run: |
pip freeze
- name: Run unit tests
uses: nick-invision/[email protected]
with:
timeout_minutes: 3
max_attempts: 1
command: |
make test
- name: Run integration tests
run: |
make itest-yarn
- name: Collect logs
if: success() || failure()
run: |
python --version
pip --version
pip list
docker logs itest-yarn
- name: Run linters
run: |
make lint
- name: Bump versions
run: |
pipx run tbump --dry-run --no-tag --no-push 100.100.100rc0
link_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
- name: Install Python dependencies
run: |
pip install ".[test]"
- uses: jupyterlab/maintainer-tools/.github/actions/check-links@v1
with:
ignore_links: "http://my-gateway-server.com:8888"
build_docs:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Base Setup
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
- name: Build Docs
run: make docs
test_minimum_versions:
name: Test Minimum Versions
timeout-minutes: 20
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
with:
python_version: "3.8"
- uses: jupyterlab/maintainer-tools/.github/actions/install-minimums@v1
- name: Run the unit tests
run: |
pytest -vv -W default || pytest -vv -W default --lf
make_sdist:
name: Make SDist
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
- uses: jupyterlab/maintainer-tools/.github/actions/make-sdist@v1
test_sdist:
runs-on: ubuntu-latest
needs: [make_sdist]
name: Install from SDist and Test
timeout-minutes: 20
steps:
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
- uses: jupyterlab/maintainer-tools/.github/actions/test-sdist@v1
python_tests_check: # This job does nothing and is only used for the branch protection
if: always()
needs:
- build
- link_check
- test_minimum_versions
- build_docs
- test_sdist
runs-on: ubuntu-latest
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}