From f2650d14670143c1a6e9be0f5caf558c1f51e429 Mon Sep 17 00:00:00 2001 From: Robin Wohlers-Reichel Date: Sat, 27 Feb 2021 09:55:21 +1100 Subject: [PATCH] Enable tests on PR (#31) * Enable tests on PR * Run coverage to find dumb mistakes --- .github/workflows/tests.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 2300a51..0f67c3c 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -1,6 +1,6 @@ name: tests -on: [push] +on: [push, pull_request] jobs: build: @@ -29,4 +29,4 @@ jobs: pylint -d 'C0111' solax tests - name: Test with pytest run: | - pytest . + pytest --cov=solax --cov-fail-under=100 --cov-branch --cov-report=term-missing .