From dd9930c409463107ca08a9ed3952ba8cd60d3cf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= Date: Wed, 14 Jun 2023 15:13:29 +0100 Subject: [PATCH 1/4] chore: better logic --- test.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test.py b/test.py index 7d93762..ad65bfc 100644 --- a/test.py +++ b/test.py @@ -1,2 +1,8 @@ -def tobias(): +#!/usr/bin/python +# -*- coding: utf-8 -*- + +def hello(): print("hello world") + +def sum_two_numbers(a, b): + return a + b From 7f66580e829f2bd6d369fb1f6c17a42f5c0bf472 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= Date: Wed, 14 Jun 2023 15:14:49 +0100 Subject: [PATCH 2/4] chore: unit tests added --- __pycache__/main.cpython-310.pyc | Bin 0 -> 380 bytes main.py | 10 ++++++++++ test.py | 17 +++++++++++++---- 3 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 __pycache__/main.cpython-310.pyc create mode 100644 main.py diff --git a/__pycache__/main.cpython-310.pyc b/__pycache__/main.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c135097321658ec39aee4d636a2f05e9f1ffbb0e GIT binary patch literal 380 zcmY*TJxc>Y5Z&3!;h`671Y6rHVqqyFLaeV58(9dK>>5vRZ_oW8MA9jOKgHkTKiJlP zVdcz<7zbwN&F;K;&y2^r31R&0iAao+_!^D8s!gPx Date: Wed, 14 Jun 2023 15:17:57 +0100 Subject: [PATCH 3/4] chore: new workflow --- .github/workflows/main.yml | 13 +++++++++++++ .mergify/config.yml | 5 ++--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..267c6c6 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,13 @@ +name: Main Workflow +on: + push: + schedule: + - cron: "0 0 * * 0" +jobs: + build: + name: Build + timeout-minutes: 10 + runs-on: ubuntu-latest + steps: + - name: Checkout code from repository + uses: actions/checkout@v3 diff --git a/.mergify/config.yml b/.mergify/config.yml index de2e1d1..81488c8 100644 --- a/.mergify/config.yml +++ b/.mergify/config.yml @@ -1,7 +1,6 @@ shared: my_ci: &common_checks - - check-success=ci-one - - check-success=ci-two + - check-success=main queue_rules: - name: hotfix @@ -9,7 +8,7 @@ queue_rules: - name: default merge_conditions: - - check-success=slow-ci + - check-success=main - and: *common_checks pull_request_rules: From 42926ea341db6146af351c96c35b5127fd430db7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= Date: Wed, 14 Jun 2023 15:20:10 +0100 Subject: [PATCH 4/4] chore: reanaming of success --- .mergify/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.mergify/config.yml b/.mergify/config.yml index 81488c8..7bb05cd 100644 --- a/.mergify/config.yml +++ b/.mergify/config.yml @@ -1,6 +1,6 @@ shared: my_ci: &common_checks - - check-success=main + - check-success=build queue_rules: - name: hotfix @@ -8,7 +8,7 @@ queue_rules: - name: default merge_conditions: - - check-success=main + - check-success=build - and: *common_checks pull_request_rules: