From a74a081e61e34b8fc38ff9cc3ac15e5cbec0cf8a Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 11 May 2023 06:34:05 +0200 Subject: [PATCH 1/8] Check for repository changes --- .github/workflows/ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8e7b11672..e0f59fbda 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -77,6 +77,18 @@ jobs: # Allow failure for coveralls coveralls || true + - name: Check for repository changes + run: | + git status + if [ -n "$(git status --porcelain)" ]; then + echo "Repository is dirty, changes detected:" + git status + git diff + exit 1 + else + echo "Repository is clean, no changes detected." + fi + - name: Backtesting (multi) run: | cp config_examples/config_bittrex.example.json config.json From 3ba1eb6baa56d3ec83f07f0e919820be7fbe9f93 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 11 May 2023 10:45:17 +0200 Subject: [PATCH 2/8] Improve concurrency group --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e0f59fbda..978341f6e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ on: - cron: '0 5 * * 4' concurrency: - group: ${{ github.workflow }}-${{ github.ref }} + group: ${{ github.workflow }}-${{ github.ref }}${{ github.head_ref }} cancel-in-progress: true permissions: repository-projects: read From 800c6223ed0da7d7b416ca5253d354a6d3146d26 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 11 May 2023 10:45:30 +0200 Subject: [PATCH 3/8] Quote concurrency group --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 978341f6e..e8d2f3312 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ on: - cron: '0 5 * * 4' concurrency: - group: ${{ github.workflow }}-${{ github.ref }}${{ github.head_ref }} + group: "${{ github.workflow }}-${{ github.ref }}${{ github.head_ref }}"" cancel-in-progress: true permissions: repository-projects: read From 1ec1abdc333a097c20c8b8da792c0022ab04cff6 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 11 May 2023 10:45:52 +0200 Subject: [PATCH 4/8] Fix syntax --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e8d2f3312..5f07c4a75 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ on: - cron: '0 5 * * 4' concurrency: - group: "${{ github.workflow }}-${{ github.ref }}${{ github.head_ref }}"" + group: "${{ github.workflow }}-${{ github.ref }}${{ github.head_ref }}" cancel-in-progress: true permissions: repository-projects: read From bd6d4d5d2d963e6c8159d48dd1e10c7bed1aa1da Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 11 May 2023 10:50:09 +0200 Subject: [PATCH 5/8] Event-name for concurrency group? --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5f07c4a75..2abe8823e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ on: - cron: '0 5 * * 4' concurrency: - group: "${{ github.workflow }}-${{ github.ref }}${{ github.head_ref }}" + group: "${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}" cancel-in-progress: true permissions: repository-projects: read From 2ecd63234d3e921fe9ca3c36a06a0c4cb2ab552f Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 11 May 2023 10:54:46 +0200 Subject: [PATCH 6/8] Remove git status again --- .github/workflows/ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2abe8823e..3778a08a4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -79,7 +79,6 @@ jobs: - name: Check for repository changes run: | - git status if [ -n "$(git status --porcelain)" ]; then echo "Repository is dirty, changes detected:" git status From 395bf49198ced7fdfe4a4bd7f2ab7739c6dbfde2 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 11 May 2023 10:55:29 +0200 Subject: [PATCH 7/8] Run Repo-check for macOS, too --- .github/workflows/ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3778a08a4..c3a7e8a7e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -185,6 +185,17 @@ jobs: run: | pytest --random-order + - name: Check for repository changes + run: | + if [ -n "$(git status --porcelain)" ]; then + echo "Repository is dirty, changes detected:" + git status + git diff + exit 1 + else + echo "Repository is clean, no changes detected." + fi + - name: Backtesting run: | cp config_examples/config_bittrex.example.json config.json From 963ff8c62006c84a63b45e3a22d06acec40c0929 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 11 May 2023 10:57:24 +0200 Subject: [PATCH 8/8] Run Repo check on windows, too. --- .github/workflows/ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c3a7e8a7e..bd9bf02fb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -259,6 +259,18 @@ jobs: run: | pytest --random-order + - name: Check for repository changes + run: | + if (git status --porcelain) { + Write-Host "Repository is dirty, changes detected:" + git status + git diff + exit 1 + } + else { + Write-Host "Repository is clean, no changes detected." + } + - name: Backtesting run: | cp config_examples/config_bittrex.example.json config.json