From 9b4915bfb4ae5fcab958f779bb427f5e9a8bc117 Mon Sep 17 00:00:00 2001 From: Wei Lee Date: Tue, 31 Dec 2019 16:46:15 +0800 Subject: [PATCH 1/2] fix(scripts/test): ensure the script fails once the first failure happens #100 --- scripts/test | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/test b/scripts/test index 2234ddc65c..119cf67098 100755 --- a/scripts/test +++ b/scripts/test @@ -1,3 +1,5 @@ +#!/bin/sh -e + export PREFIX="poetry run python -m " if [ -d 'venv' ] ; then export PREFIX="venv/bin/" From b3958be6f97fdc82027c856e0c17eb8fdb5084b1 Mon Sep 17 00:00:00 2001 From: Wei Lee Date: Tue, 31 Dec 2019 16:57:36 +0800 Subject: [PATCH 2/2] fix(github_workflow/pythonpackage): set git config for unit testing --- .github/workflows/pythonpackage.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index 2e0171a5f5..4efc8d90e0 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -24,6 +24,8 @@ jobs: poetry install - name: Run tests run: | + git config --global user.email "action@github.com" + git config --global user.name "GitHub Action" ./scripts/test - name: Upload coverage to Codecov if: runner.os == 'Linux'