From 819cfe3c46ff5a902aab6c5cb4acc634e04b8dbb Mon Sep 17 00:00:00 2001 From: Amichai Date: Sun, 8 Sep 2024 13:22:34 +0300 Subject: [PATCH] UTs should run on each push --- .github/workflows/main.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1662b09..06ab80b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,12 +1,15 @@ name: Build and Release on: - push: + push: # This applies to all pushes branches: - - master - tags: - - 'v*.*.*' - + - '**' # Run on all branches for push + pull_request: + branches: + - '**' # Run unit tests on all PRs as well + tags: + - 'v*.*.*' # For tag pushes + jobs: run-unit-tests: strategy: @@ -44,6 +47,7 @@ jobs: path: test-results verify: + if: github.ref == 'refs/heads/master' runs-on: ubuntu-latest steps: - name: Checkout code @@ -116,4 +120,4 @@ jobs: env: PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} run: | - poetry publish -u __token__ -p $PYPI_TOKEN + poetry publish -u __token__ -p $PYPI_TOKEN \ No newline at end of file