Skip to content

Commit f6a6638

Browse files
cclausscodebytere
authored andcommittedMar 17, 2020
build: test Python 3 using GitHub Actions-based CI
PR-URL: #29474 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent 6f71efa commit f6a6638

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
 

‎.github/workflows/pythonpackage.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Python 3 testing
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
fail-fast: false
10+
max-parallel: 1
11+
matrix:
12+
python-version: [3.8] # [2.7, 3.5, 3.6, 3.7]
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Set up Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v1
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
- name: Compile Node.js
20+
run: |
21+
python ./configure.py
22+
make -j2 V=1
23+
- name: Test JS Suites
24+
run: |
25+
python tools/test.py -j 2 -p dots --report --mode=release --flaky-tests=dontcare default
26+
- name: Test C++ Suites
27+
run: |
28+
make -j1 V=1 test/addons/.buildstamp test/js-native-api/.buildstamp test/node-api/.buildstamp
29+
python tools/test.py -j 2 -p dots --report --mode=release --flaky-tests=dontcare addons js-native-api node-api
30+
- name: Make lint
31+
run: |
32+
make lint-py-build || true
33+
NODE=$(which node) make lint lint-py

0 commit comments

Comments
 (0)
Please sign in to comment.