From 4559653bdedfce3e5709fb6863e6c259de532d41 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 18 Aug 2019 16:42:05 +0200 Subject: [PATCH 1/4] build: try GitHub Actions CI for runing tests --- .github/workflows/pythonpackage.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/pythonpackage.yml diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml new file mode 100644 index 00000000000000..855401842a6c93 --- /dev/null +++ b/.github/workflows/pythonpackage.yml @@ -0,0 +1,29 @@ +name: Python package + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + max-parallel: 1 + matrix: + # GitHub Actions / build (2.7) successful in 1h 30m 7s + python-version: [3.7] # [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 + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt || true + - name: make lint + run: | + make lint + - name: make test + run: | + python ./configure.py + make test From 49c44378d070abba07c2bca991b0c9b61ef786b9 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 20 Aug 2019 16:24:56 +0200 Subject: [PATCH 2/4] Add fail-fast: false and continue-on-error: true --- .github/workflows/pythonpackage.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index 855401842a6c93..1cb29766138f09 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -6,10 +6,11 @@ jobs: build: runs-on: ubuntu-latest strategy: - max-parallel: 1 + fail-fast: false + max-parallel: 2 matrix: # GitHub Actions / build (2.7) successful in 1h 30m 7s - python-version: [3.7] # [2.7, 3.5, 3.6,, 3.7] + python-version: [2.7, 3.7] # [2.7, 3.5, 3.6,, 3.7] steps: - uses: actions/checkout@v1 - name: Set up Python ${{ matrix.python-version }} @@ -24,6 +25,7 @@ jobs: run: | make lint - name: make test + continue-on-error: true run: | python ./configure.py make test From 53ecb46d27db043ac0c72969b3db6dd431260d4c Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sat, 24 Aug 2019 08:28:14 +0200 Subject: [PATCH 3/4] Add a Python 3.6 run to the mix --- .github/workflows/pythonpackage.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index 1cb29766138f09..5c3ebf7f401eda 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -10,7 +10,7 @@ jobs: max-parallel: 2 matrix: # GitHub Actions / build (2.7) successful in 1h 30m 7s - python-version: [2.7, 3.7] # [2.7, 3.5, 3.6,, 3.7] + python-version: [2.7, 3.6, 3.7] # [2.7, 3.5, 3.6,, 3.7] steps: - uses: actions/checkout@v1 - name: Set up Python ${{ matrix.python-version }} From f6d2ae11d0575c3eca2a64c8d54aaca3ea7ebc01 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Thu, 19 Dec 2019 22:10:37 +0100 Subject: [PATCH 4/4] Update .github/workflows/pythonpackage.yml Co-Authored-By: Ruben Bridgewater --- .github/workflows/pythonpackage.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index 5c3ebf7f401eda..9d4e291e7d47f2 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -28,4 +28,4 @@ jobs: continue-on-error: true run: | python ./configure.py - make test + make -J test