From f2f2b080e29f8b9814ba5a4c2bb59da4cbaab335 Mon Sep 17 00:00:00 2001 From: Evgeny Maslov Date: Tue, 22 Sep 2020 10:32:14 +0300 Subject: [PATCH 1/5] f --- main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.py b/main.py index 4d6bb14..ad895dd 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() From 9310576cad50f6b8a35c241c040b4efc456f1439 Mon Sep 17 00:00:00 2001 From: Evgeny Maslov Date: Tue, 22 Sep 2020 11:16:14 +0300 Subject: [PATCH 2/5] f --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index ad895dd..2d1991c 100644 --- a/main.py +++ b/main.py @@ -11,4 +11,4 @@ def Precommit(): Precommit() -ccc() +ccc() \ No newline at end of file From 3228d74ac056ac5f7e02dfe0d84544207c8720a4 Mon Sep 17 00:00:00 2001 From: Evgeny Maslov Date: Tue, 22 Sep 2020 11:18:07 +0300 Subject: [PATCH 3/5] a --- .github/workflows/flake8.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/flake8.yml b/.github/workflows/flake8.yml index 36d21a5..ad34e05 100644 --- a/.github/workflows/flake8.yml +++ b/.github/workflows/flake8.yml @@ -6,7 +6,7 @@ name: CI # events but only for the master branch on: pull_request: - types: [ review_requested, ready_for_review ] + types: [ ready_for_review ] branches: [ master ] jobs: From 8b8e42eaf7d5b0495c4c4257e2c23adb96ad0322 Mon Sep 17 00:00:00 2001 From: Evgeny Maslov Date: Tue, 22 Sep 2020 11:19:31 +0300 Subject: [PATCH 4/5] Fix --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 79613ba..d44b398 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,6 +1,6 @@ # This is a basic workflow to help you get started with Actions -name: Run unit tests +name: CI # Controls when the action will run. Triggers the workflow on push or pull request # events but only for the master branch From 722c4ce7bd40ca8fac7824a408901b07c0dfc79b Mon Sep 17 00:00:00 2001 From: Evgeny Maslov Date: Tue, 22 Sep 2020 13:49:49 +0300 Subject: [PATCH 5/5] Fix --- .github/workflows/flake8.yml | 13 ++++++++++++- .github/workflows/test.yml | 22 ---------------------- 2 files changed, 12 insertions(+), 23 deletions(-) delete mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/flake8.yml b/.github/workflows/flake8.yml index ad34e05..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: [ 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 d44b398..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: CI - -# 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'