summaryrefslogtreecommitdiffstats
path: root/.github/workflows/unittest.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/unittest.yml')
-rw-r--r--.github/workflows/unittest.yml11
1 files changed, 9 insertions, 2 deletions
diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml
index 20d9e55f..03a02f6a 100644
--- a/.github/workflows/unittest.yml
+++ b/.github/workflows/unittest.yml
@@ -1,6 +1,13 @@
name: Unittest
-on: [push]
+on:
+ pull_request:
+ types:
+ - opened
+ - synchronize
+ push:
+ branches:
+ - 'main'
jobs:
build:
@@ -16,4 +23,4 @@ jobs:
- name: Install requirements
run: pip install -r requirements.txt
- name: Run tests
- run: python -m etc.unittest.main \ No newline at end of file
+ run: python -m etc.unittest \ No newline at end of file