forked from microsoft/vscode-python-debugger
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
55 lines (45 loc) · 1.31 KB
/
action.yml
File metadata and controls
55 lines (45 loc) · 1.31 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
name: 'Lint'
description: 'Lint TypeScript and Python code'
inputs:
node_version:
description: 'Version of Node to install'
required: true
runs:
using: 'composite'
steps:
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node_version }}
cache: 'npm'
- name: Install Node dependencies
run: npm ci
shell: bash
- name: Lint TypeScript code
run: npm run lint
shell: bash
- name: Check TypeScript format
run: npm run format-check
shell: bash
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Pip cache
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-lint-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-lint-
# For faster/better builds of sdists.
- name: Update pip, install pipx and install wheel
run: python -m pip install -U pip pipx wheel
shell: bash
# This will install libraries to a target directory.
- name: Install bundled python libraries
run: pipx run nox --session install_bundled_libs
shell: bash
- name: Check linting and formatting
run: pipx run nox --session lint
shell: bash