-
Notifications
You must be signed in to change notification settings - Fork 392
46 lines (37 loc) · 1.1 KB
/
step_pre-commit.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
name: pre-commit
run-name: Run pre-commit tests
on:
workflow_call:
permissions:
contents: read
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- uses: pre-commit/[email protected]
lint-extension:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Base Setup
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
with:
python_version: "3.x"
# Current repo organization will not permit to set up pre-commit config for
# TS lint related packages due to absence of package.json in the top level
# repo. So we run lint step separately here
- name: Lint the extension
run: |
# Install JupyterLab in an isolated env to get jlpm
pip install jupyterlab>=4
# Install lint deps and lint extension
cd jupyterlab/
jlpm
jlpm run lint:check