Skip to content

Commit 2196e9f

Browse files
committed
install npm latest everywhere
1 parent 3ac40e5 commit 2196e9f

File tree

2 files changed

+22
-8
lines changed

2 files changed

+22
-8
lines changed

.github/workflows/release-pkg.yml

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ jobs:
1717
uses: actions/setup-python@v1
1818
with:
1919
python-version: "3.x"
20+
- name: Install latest NPM
21+
run: |
22+
npm install -g npm@latest
23+
npm --version
2024
- name: Install dependencies
2125
run: |
2226
python -m pip install --upgrade pip

.github/workflows/test.yml

+18-8
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,14 @@ jobs:
2323
uses: actions/setup-python@v2
2424
with:
2525
python-version: 3.9
26+
- name: Install latest NPM
27+
run: |
28+
npm install -g npm@latest
29+
npm --version
2630
- name: Install Python Dependencies
2731
run: pip install -r requirements/test-run.txt
2832
- name: Run Tests
29-
run: |
30-
npm install -g [email protected]
31-
nox -s test -- --headless
33+
run: nox -s test -- --headless
3234
test-python-versions:
3335
runs-on: ${{ matrix.os }}
3436
strategy:
@@ -45,24 +47,28 @@ jobs:
4547
uses: actions/setup-python@v2
4648
with:
4749
python-version: ${{ matrix.python-version }}
50+
- name: Install latest NPM
51+
run: |
52+
npm install -g npm@latest
53+
npm --version
4854
- name: Install Python Dependencies
4955
run: pip install -r requirements/test-run.txt
5056
- name: Run Tests
51-
run: |
52-
npm install -g [email protected]
53-
nox -s test -- --headless --no-cov
57+
run: nox -s test -- --headless --no-cov
5458
test-javascript:
5559
runs-on: ubuntu-latest
5660
steps:
5761
- uses: actions/checkout@v2
5862
- uses: actions/setup-node@v2
5963
with:
6064
node-version: "14"
65+
- name: Install latest NPM
66+
run: |
67+
npm install -g npm@latest
68+
npm --version
6169
- name: Test Javascript
6270
working-directory: ./src/idom/client/app
6371
run: |
64-
npm --version
65-
npm install -g [email protected]
6672
npm install
6773
npm test
6874
npm run build
@@ -88,5 +94,9 @@ jobs:
8894
uses: actions/setup-python@v2
8995
with:
9096
python-version: 3.9
97+
- name: Install latest NPM
98+
run: |
99+
npm install -g npm@latest
100+
npm --version
91101
- name: Test Build Creation
92102
run: python setup.py bdist_wheel sdist

0 commit comments

Comments
 (0)