Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: test Python 3 using GitHub Actions-based CI #29474

Closed
Closed
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
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.6] # [2.7, 3.5, 3.6,, 3.7]
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
cclauss marked this conversation as resolved.
Show resolved Hide resolved
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt || true
- name: Compile V8
run: |
python ./configure.py
make -j2 -C out V=1 v8
cclauss marked this conversation as resolved.
Show resolved Hide resolved
- 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