Skip to content

Commit 22ff97b

Browse files
authored
Bump to Python 3.10 (and Pygls 2.0) Automatically (#608)
1 parent 231884d commit 22ff97b

29 files changed

+1627
-238
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.github/workflows/*.lock.yml linguist-generated=true merge=ours

.github/actions/build-vsix/action.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ inputs:
55
node_version:
66
description: 'Version of Node to install'
77
required: true
8+
python_version:
9+
description: 'Version of Python to install'
10+
required: true
811

912
runs:
1013
using: 'composite'
@@ -15,11 +18,11 @@ runs:
1518
node-version: ${{ inputs.node_version }}
1619
cache: 'npm'
1720

18-
# Minimum supported version is Python 3.9
19-
- name: Use Python 3.9
20-
uses: actions/setup-python@v4
21+
# Minimum supported version is Python 3.10
22+
- name: Use Python ${{ inputs.python_version }}
23+
uses: actions/setup-python@v5
2124
with:
22-
python-version: 3.9
25+
python-version: ${{ inputs.python_version }}
2326

2427
- name: Pip cache
2528
uses: actions/cache@v3

.github/actions/lint/action.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ inputs:
55
node_version:
66
description: 'Version of Node to install'
77
required: true
8+
python_version:
9+
description: 'Version of Python to install'
10+
required: true
811

912
runs:
1013
using: 'composite'
@@ -27,10 +30,10 @@ runs:
2730
run: npm run format-check
2831
shell: bash
2932

30-
- name: Install Python
31-
uses: actions/setup-python@v4
33+
- name: Install Python ${{ inputs.python_version }}
34+
uses: actions/setup-python@v5
3235
with:
33-
python-version: '3.9'
36+
python-version: ${{ inputs.python_version }}
3437

3538
- name: Pip cache
3639
uses: actions/cache@v3

.github/aw/actions-lock.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"entries": {
3+
"actions/github-script@v8": {
4+
"repo": "actions/github-script",
5+
"version": "v8",
6+
"sha": "ed597411d8f924073f98dfc5c65a23a2325f34cd"
7+
},
8+
"github/gh-aw/actions/setup@v0.43.22": {
9+
"repo": "github/gh-aw/actions/setup",
10+
"version": "v0.43.22",
11+
"sha": "fe858c3e14589bf396594a0b106e634d9065823e"
12+
}
13+
}
14+
}

.github/dependabot.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
version: 2
2+
updates:
3+
# NPM dependencies are updated weekly, minor updates are grouped (1 PR "npm-minor-patch").
4+
- package-ecosystem: 'npm'
5+
labels:
6+
- 'dependencies'
7+
- 'debt'
8+
- 'no-changelog'
9+
directory: '/'
10+
schedule:
11+
interval: 'weekly'
12+
groups:
13+
npm-minor-patch:
14+
patterns:
15+
- '*'
16+
update-types:
17+
- 'minor'
18+
- 'patch'
19+
open-pull-requests-limit: 10
20+
ignore:
21+
- dependency-name: '@types/vscode'
22+
- dependency-name: '@types/node'
23+
- dependency-name: 'vscode-languageclient'
24+
25+
# Python dependencies are updated weekly, minor updates are grouped (1 PR "pip-minor-patch").
26+
# The no-changelog label is NOT added here
27+
- package-ecosystem: 'pip'
28+
labels:
29+
- 'dependencies'
30+
- 'debt'
31+
directory: '/'
32+
schedule:
33+
interval: 'weekly'
34+
open-pull-requests-limit: 10
35+
groups:
36+
pip-minor-patch:
37+
patterns:
38+
- '*'
39+
update-types:
40+
- 'minor'
41+
- 'patch'
42+
43+
# Python test dependencies are updated weekly, minor updates are grouped (1 PR "pip-test-minor-patch").
44+
- package-ecosystem: 'pip'
45+
labels:
46+
- 'dependencies'
47+
- 'debt'
48+
- 'no-changelog'
49+
directory: '/src/test/python_tests'
50+
schedule:
51+
interval: 'weekly'
52+
open-pull-requests-limit: 10
53+
groups:
54+
pip-test-minor-patch:
55+
patterns:
56+
- '*'
57+
update-types:
58+
- 'minor'
59+
- 'patch'
60+
61+
# GitHub Actions dependencies are updated weekly, minor updates are grouped (1 PR "github-actions-minor-patch").
62+
- package-ecosystem: 'github-actions'
63+
labels:
64+
- 'dependencies'
65+
- 'debt'
66+
- 'no-changelog'
67+
directory: '/'
68+
schedule:
69+
interval: 'weekly'
70+
open-pull-requests-limit: 10
71+
groups:
72+
github-actions-minor-patch:
73+
patterns:
74+
- '*'
75+
update-types:
76+
- 'minor'
77+
- 'patch'

0 commit comments

Comments
 (0)