File tree 4 files changed +21
-32
lines changed 4 files changed +21
-32
lines changed Original file line number Diff line number Diff line change @@ -29,32 +29,24 @@ runs:
29
29
restore-keys : |
30
30
${{ runner.os }}-pip-build-vsix-
31
31
32
- - name : Upgrade Pip
33
- run : python -m pip install -U pip
34
- shell : bash
35
-
36
32
# For faster/better builds of sdists.
37
- - name : Install build pre-requisite
38
- run : python -m pip install wheel
39
- shell : bash
40
-
41
- - name : Install nox
42
- run : python -m pip install nox
33
+ - name : Update pip, install pipx and install wheel
34
+ run : python -m pip install -U pip pipx wheel
43
35
shell : bash
44
36
45
37
- name : Run npm ci
46
38
run : npm ci --prefer-offline
47
39
shell : bash
48
40
49
41
- name : Install bundled python libraries
50
- run : python -m nox --session install_bundled_libs
42
+ run : pipx run nox --session install_bundled_libs
51
43
shell : bash
52
44
53
45
# Use the GITHUB_RUN_ID environment variable to update the build number.
54
46
# GITHUB_RUN_ID is a unique number for each run within a repository.
55
47
# This number does not change if you re-run the workflow run.
56
48
- name : Update extension build number
57
- run : python -m nox --session update_build_number -- $GITHUB_RUN_ID
49
+ run : pipx run nox --session update_build_number -- $GITHUB_RUN_ID
58
50
shell : bash
59
51
60
52
- name : Build VSIX
Original file line number Diff line number Diff line change @@ -40,19 +40,16 @@ runs:
40
40
restore-keys : |
41
41
${{ runner.os }}-pip-lint-
42
42
43
- - name : Upgrade Pip
44
- run : python -m pip install -U pip
45
- shell : bash
46
-
47
- - name : Install wheel and nox
48
- run : python -m pip install wheel nox
43
+ # For faster/better builds of sdists.
44
+ - name : Update pip, install pipx and install wheel
45
+ run : python -m pip install -U pip pipx wheel
49
46
shell : bash
50
47
51
48
# This will install libraries to a target directory.
52
49
- name : Install bundled python libraries
53
- run : python -m nox --session install_bundled_libs
50
+ run : pipx run nox --session install_bundled_libs
54
51
shell : bash
55
52
56
53
- name : Check linting and formatting
57
- run : python -m nox --session lint
54
+ run : pipx run nox --session lint
58
55
shell : bash
Original file line number Diff line number Diff line change @@ -59,13 +59,13 @@ jobs:
59
59
with :
60
60
python-version : ' 3.7'
61
61
62
- - name : Update pip, install wheel and nox
63
- run : python -m pip install -U pip wheel nox
62
+ - name : Update pip, install pipx and install wheel
63
+ run : python -m pip install -U pip pipx wheel
64
64
shell : bash
65
65
66
66
# This will install libraries to a target directory.
67
67
- name : Install bundled python libraries
68
- run : python -m nox --session install_bundled_libs
68
+ run : pipx run nox --session install_bundled_libs
69
69
shell : bash
70
70
71
71
- name : Install Node
86
86
python-version : ${{ matrix.python }}
87
87
88
88
# The new python may not have nox so install it again
89
- - name : Update pip, install wheel and nox (again)
90
- run : python -m pip install -U pip wheel nox
89
+ - name : Update pip, install pipx and install wheel (again)
90
+ run : python -m pip install -U pip pipx wheel
91
91
shell : bash
92
92
93
93
- name : Start xvfb on Linux
98
98
if : ${{ runner.os }} == 'Linux'
99
99
100
100
- name : Run tests
101
- run : python -m nox --session tests
101
+ run : pipx run nox --session tests
102
102
shell : bash
103
103
env :
104
104
DISPLAY : ${{ env.DISPLAY }}
Original file line number Diff line number Diff line change @@ -64,13 +64,13 @@ jobs:
64
64
with :
65
65
python-version : ' 3.7'
66
66
67
- - name : Update pip, install wheel and nox
68
- run : python -m pip install -U pip wheel nox
67
+ - name : Update pip, install pipx and install wheel
68
+ run : python -m pip install -U pip pipx wheel
69
69
shell : bash
70
70
71
71
# This will install libraries to a target directory.
72
72
- name : Install bundled python libraries
73
- run : python -m nox --session install_bundled_libs
73
+ run : pipx run nox --session install_bundled_libs
74
74
shell : bash
75
75
76
76
# Now that the bundle is installed to target using python 3.7
@@ -81,10 +81,10 @@ jobs:
81
81
python-version : ${{ matrix.python }}
82
82
83
83
# The new python may not have nox so install it again
84
- - name : Update pip, install wheel and nox (again)
85
- run : python -m pip install -U pip wheel nox
84
+ - name : Update pip, install pipx and install wheel (again)
85
+ run : python -m pip install -U pip pipx wheel
86
86
shell : bash
87
87
88
88
- name : Run tests
89
- run : python -m nox --session tests
89
+ run : pipx run nox --session tests
90
90
shell : bash
You can’t perform that action at this time.
0 commit comments