forked from jupyterlab/jupyterlab
-
Notifications
You must be signed in to change notification settings - Fork 3
157 lines (146 loc) · 4.61 KB
/
linuxtests.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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
name: Linux Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
release:
types: [published]
jobs:
linuxtests:
name: Linux
strategy:
matrix:
group: [integrity, integrity2, integrity3, release_test, docs, usage, usage2, splice_source, python, examples, interop, nonode, lint]
# This will be used by the base setup action
python-version: ["3.8", "3.11"]
include:
- group: examples
upload-output: true
- group: release_test
upload-output: true
exclude:
- group: integrity
python-version: "3.8"
- group: integrity2
python-version: "3.8"
- group: integrity3
python-version: "3.8"
- group: release_test
python-version: "3.8"
- group: docs
python-version: "3.8"
- group: usage
python-version: "3.8"
- group: usage2
python-version: "3.8"
- group: nonode
python-version: "3.8"
- group: lint
python-version: "3.8"
- group: examples
python-version: "3.8"
- group: splice_source
python-version: "3.8"
fail-fast: false
timeout-minutes: 45
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Base Setup
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
- name: Setup firefox
uses: browser-actions/setup-firefox@latest
- name: Install dependencies
env:
GROUP: ${{ matrix.group }}
run: |
bash ./scripts/ci_install.sh
- name: Run test ${{ matrix.group }}
env:
GROUP: ${{ matrix.group }}
JLAB_BROWSER_TYPE: firefox
run: |
bash ./scripts/ci_script.sh
- name: Upload ${{ matrix.group }} results
if: ${{ matrix.upload-output && always() }}
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.group }} ${{ github.run_number }}
path: |
./build/${{ matrix.group }}_output
./examples/*/test-results
test_minimum_versions:
name: Test Minimum Versions
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Base Setup
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
with:
python_version: "3.8"
- name: Install minimum versions
uses: jupyterlab/maintainer-tools/.github/actions/install-minimums@v1
- name: Install dependencies
run: |
bash ./scripts/ci_install.sh
- name: Run the unit tests
run: pytest -vv || pytest -vv --lf
make_sdist:
name: Make SDist
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- name: Base Setup
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
- name: Install dependencies
run: |
bash ./scripts/ci_install.sh
- name: Build SDist
run: |
pip install build
python -m build --sdist
- uses: actions/upload-artifact@v3
with:
name: "sdist"
path: dist/*.tar.gz
test_sdist:
runs-on: ubuntu-latest
needs: [make_sdist]
name: Install from SDist and Test
timeout-minutes: 20
steps:
- name: Base Setup
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
- name: Download sdist
uses: actions/download-artifact@v3
- name: Install From SDist
run: |
set -ex
cd sdist
mkdir test
tar --strip-components=1 -zxvf *.tar.gz -C ./test
cd test
pip install -e .[dev,test]
pip install pytest-github-actions-annotate-failures
- name: Run Test
run: |
cd sdist/test
pytest -vv || pytest -vv --lf
check_links:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
- run: |
node ./jupyterlab/staging/yarn.js install
node ./jupyterlab/staging/yarn.js run build:packages
node ./jupyterlab/staging/yarn.js run docs
- uses: jupyterlab/maintainer-tools/.github/actions/check-links@v1
with:
ignore_glob: "docs/api packages/ui-components/docs/source/ui_components.rst images"
ignore_links: ".*/images/[\\w-]+.png https://docs.github.com/en/.* https://jupyterlab.github.io https://mybinder.org/v2/gh/jupyterlab/.*"