Skip to content

Commit

Permalink
UTs should run on each push
Browse files Browse the repository at this point in the history
  • Loading branch information
amshamah419 committed Sep 8, 2024
1 parent 8ef6a3f commit 819cfe3
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -44,6 +47,7 @@ jobs:
path: test-results

verify:
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down Expand Up @@ -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

0 comments on commit 819cfe3

Please sign in to comment.