-
-
Notifications
You must be signed in to change notification settings - Fork 341
51 lines (49 loc) · 1.35 KB
/
lint.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
name: Lint
on:
- pull_request
jobs:
lint_ts:
name: Lint TypeScript source
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
with:
python_version: "3.11.x"
- name: Install JupyterLab
run: pip install jupyterlab~=4.0
- name: Install JS dependencies
run: jlpm
- name: Lint TypeScript source
run: jlpm lerna run lint:check
lint_py_imports:
name: Lint Python imports
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Echo environment details
run: |
which python
which pip
python --version
pip --version
- name: Create and activate venv
run: |
python -m venv lint_py_imports
source ./lint_py_imports/bin/activate
- name: Echo environment details
run: |
which python
which pip
python --version
pip --version
- name: Install JupyterLab
run: pip install jupyterlab~=4.0
- name: Install `import-linter`
run: pip install import-linter~=1.12.1
- name: Install Jupyter AI packages from source
run: |
jlpm install
jlpm install-from-src
- name: Lint Python imports
run: lint-imports