diff options
author | cclauss <cclauss@me.com> | 2019-09-06 16:24:09 +0200 |
---|---|---|
committer | Shelley Vohr <shelley.vohr@gmail.com> | 2020-03-16 19:40:46 -0700 |
commit | f6a6638d0c2c1851a8addad508d70fadeb74c068 (patch) | |
tree | aa0cb96f8add77ccc3d3993e9fcbbb891bd3a1d1 /.github | |
parent | 6f71efa0ede2572952494c2b1d365b677bd2ea77 (diff) | |
download | node-new-f6a6638d0c2c1851a8addad508d70fadeb74c068.tar.gz |
build: test Python 3 using GitHub Actions-based CI
PR-URL: https://github.com/nodejs/node/pull/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>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/pythonpackage.yml | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml new file mode 100644 index 0000000000..9ff5e9a39d --- /dev/null +++ b/.github/workflows/pythonpackage.yml @@ -0,0 +1,33 @@ +name: Python 3 testing + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + fail-fast: false + max-parallel: 1 + matrix: + python-version: [3.8] # [2.7, 3.5, 3.6, 3.7] + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + - name: Compile Node.js + run: | + python ./configure.py + make -j2 V=1 + - name: Test JS Suites + run: | + python tools/test.py -j 2 -p dots --report --mode=release --flaky-tests=dontcare default + - name: Test C++ Suites + run: | + make -j1 V=1 test/addons/.buildstamp test/js-native-api/.buildstamp test/node-api/.buildstamp + python tools/test.py -j 2 -p dots --report --mode=release --flaky-tests=dontcare addons js-native-api node-api + - name: Make lint + run: | + make lint-py-build || true + NODE=$(which node) make lint lint-py |