diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a4952ef..b8e5e98 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,5 +1,11 @@ name: Python package -on: [push] + +on: + push: + branches: [main] + pull_request: + branches: [main] + jobs: build: runs-on: ubuntu-latest @@ -25,4 +31,4 @@ jobs: ruff --format=github --target-version=py37 . - name: Test with pytest run: | - python -m pytest \ No newline at end of file + python -m pytest