Skip to content

Commit 7dbf942

Browse files
committed
update workflow for installed extension as well
1 parent 0bef819 commit 7dbf942

File tree

1 file changed

+8
-30
lines changed
  • {{cookiecutter.github_project_name}}/.github/workflows

1 file changed

+8
-30
lines changed

{{cookiecutter.github_project_name}}/.github/workflows/build.yml

Lines changed: 8 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -8,43 +8,21 @@ on:
88

99
jobs:
1010
build:
11-
runs-on: ubuntu-latest
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
os: [ubuntu-latest, windows-latest, macos-latest]
16+
python-version: ["3.7", "3.10"]
1217
steps:
1318
- name: Checkout
1419
uses: actions/checkout@v2
15-
- name: Install node
16-
uses: actions/setup-node@v1
17-
with:
18-
node-version: "12.x"
19-
- name: Install Python
20-
uses: actions/setup-python@v2
21-
with:
22-
python-version: "3.7"
23-
architecture: "x64"
2420

25-
- name: Setup pip cache
26-
uses: actions/cache@v2
27-
with:
28-
path: ~/.cache/pip
29-
key: pip-3.7-${{ hashFiles('package.json') }}
30-
restore-keys: |
31-
pip-3.7-
32-
pip-
33-
34-
- name: Get npm cache directory
35-
id: npm-cache
36-
run: |
37-
echo "::set-output name=dir::$(npm config get cache)"
38-
- uses: actions/cache@v2
39-
with:
40-
path: ${{ steps.npm-cache.outputs.dir }}
41-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
42-
restore-keys: |
43-
${{ runner.os }}-node-
21+
- uses: jupyterlab/maintainer-tools/.github/base-setup@v1
4422

4523
- name: Install dependencies
4624
run: |
47-
python -m pip install -U pip setuptools codecov
25+
python -m pip install -U codecov
4826
npm install -g codecov
4927
- name: Test the extension
5028
run: |

0 commit comments

Comments
 (0)