浏览代码

update pythonapp.yml workflow

Andrew Chiles 5 年之前
父节点
当前提交
37f4d34be6
共有 1 个文件被更改,包括 11 次插入5 次删除
  1. 11 5
      .github/workflows/pythonapp.yml

+ 11 - 5
.github/workflows/pythonapp.yml

@@ -1,6 +1,12 @@
 name: Python application
 
-on: [push]
+on:
+  push:
+    branches: 
+      - master
+  pull_request:
+    branches: 
+      - master
 
 jobs:
   build:
@@ -24,7 +30,7 @@ jobs:
         flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
         # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
         flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
-    #- name: Test with pytest
-    #  run: |
-    #    pip install pytest
-    #    pytest
+    - name: Test with pytest
+      run: |
+        python domainhunter.py -h
+        python domainhunter.py -c github.com