From 96ff1d8426f4ac3760711e158905e8a3cbfb603a Mon Sep 17 00:00:00 2001 From: Jarrett Keifer Date: Fri, 1 Oct 2021 13:28:45 -0700 Subject: [PATCH] actions: run CI only on main, but now allow on PRs (#27) Co-authored-by: trevorskaggs --- .github/workflows/python-test.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index aa8767e..c9a57ee 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -1,5 +1,11 @@ name: Python Test -on: [push] +on: + push: + branches: + main + pull_request: + branches: + main env: AWS_DEFAULT_REGION: us-west-2 @@ -38,4 +44,4 @@ jobs: run: coverage run --source=. -m py.test - name: Upload coverage shell: pwsh - run: coverage report -m \ No newline at end of file + run: coverage report -m