Skip to content

Commit

Permalink
Configure unit tests to run on pull requests.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 661362593
  • Loading branch information
danieldjohnson authored and Penzai Developers committed Aug 9, 2024
1 parent a0137a4 commit 5f9035c
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
name: Unittests

# Allow to trigger the workflow manually (e.g. when deps changes)
on: [push, workflow_dispatch]
on:
# Allow to trigger the workflow manually (e.g. when deps changes)
workflow_dispatch:
# Run on pushes to main or test branches
push:
branches:
- main
- 'test_*'
# Run on pull requests to main
pull_request:
branches:
- main

jobs:
unittest-job:
Expand Down

0 comments on commit 5f9035c

Please sign in to comment.