From ec4985c323ed05b805037d2c2c3468b1d41b01dd Mon Sep 17 00:00:00 2001 From: pciturri Date: Wed, 31 Jul 2024 14:00:29 +0200 Subject: [PATCH] ci: updated ci rules to run test only for pushs on main. Other branches only get tested if part of a PR --- .github/workflows/build-test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 2f4e9bd..02ba267 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -2,8 +2,8 @@ name: tests on: push: - branches-ignore: - - 'v*' + branches: + - master pull_request: jobs: @@ -37,7 +37,7 @@ jobs: - name: Test with pytest run: | - pytest --cov=./ --cov-config=.coveragerc + pytest --durations=0 --cov=./ --cov-config=.coveragerc - name: Upload coverage if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10'