Skip to content

Commit c754a2b

Browse files
Test workflow
1 parent 518c880 commit c754a2b

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/tests.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
node-version: [18.x]
15+
python-version: [3.9]
16+
os: [ubuntu-latest, windows-latest, macos-latest]
17+
runs-on: ${{ matrix.os }}
18+
19+
steps:
20+
- uses: actions/checkout@v3
21+
22+
- name: Use Node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
27+
- name: Set up Python ${{ matrix.python-version }}
28+
uses: actions/setup-python@v4
29+
with:
30+
python-version: ${{ matrix.python-version }}
31+
# cache: 'pip' # Not caching pip dependencies so that we test if pydeps autoinstall works
32+
33+
- run: npm ci
34+
- run: npm run build
35+
- run: npm run test:unit
36+
# test-electron fails to launch on ubuntu and macos (ubuntu is headless, unsure why macos fails).
37+
# integration tests do work on windows however
38+
- if: ${{ startsWith(matrix.os, 'windows-') }}
39+
run: npm run test:integration

0 commit comments

Comments
 (0)