diff --git a/.github/workflows/flake8.yml b/.github/workflows/flake8.yml index 36d21a5..0d82363 100644 --- a/.github/workflows/flake8.yml +++ b/.github/workflows/flake8.yml @@ -6,7 +6,6 @@ name: CI # events but only for the master branch on: pull_request: - types: [ review_requested, ready_for_review ] branches: [ master ] jobs: @@ -25,3 +24,15 @@ jobs: event-type: flake8-event # Additional arguments to pass to flake8, default "." (current directory) args: "--ignore=E121" + + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - uses: actions/setup-python@v2 + with: + python-version: '3.7.7' + - name: Test + uses: onichandame/python-test-action@master + with: + deps_list: 'requirements.txt' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 79613ba..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,22 +0,0 @@ -# This is a basic workflow to help you get started with Actions - -name: Run unit tests - -# Controls when the action will run. Triggers the workflow on push or pull request -# events but only for the master branch -on: - repository_dispatch: - types: [ flake8-event ] - -jobs: - test: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@master - - uses: actions/setup-python@v2 - with: - python-version: '3.7.7' - - name: Test - uses: onichandame/python-test-action@master - with: - deps_list: 'requirements.txt' diff --git a/main.py b/main.py index 4d6bb14..2d1991c 100644 --- a/main.py +++ b/main.py @@ -1,9 +1,14 @@ from pathlib import Path +def ccc(): + pass + + def Precommit(): if True: print(Path(".") + " 11111" + "22222") Precommit() +ccc() \ No newline at end of file