From 176020c89e1c5a93737a026d1dc97687f6ae2193 Mon Sep 17 00:00:00 2001 From: Juarez Rudsatz Date: Thu, 14 Mar 2024 17:07:45 -0300 Subject: [PATCH 1/8] ci: only trigger actions for code analysis workflows after testing changes --- .github/workflows/codacy-analysis.yml | 4 ++-- .github/workflows/codeql-analysis.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/codacy-analysis.yml b/.github/workflows/codacy-analysis.yml index 3a0357f8..f5f8d4d0 100644 --- a/.github/workflows/codacy-analysis.yml +++ b/.github/workflows/codacy-analysis.yml @@ -16,8 +16,8 @@ name: Codacy Security Scan on: schedule: - cron: '59 11 27 * *' - push: - branches: [ "master" ] + # push: + # branches: [ "master" ] # pull_request: # # The branches below must be a subset of the branches above # branches: [ "master" ] diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 8665992d..f1dcfccf 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -14,8 +14,8 @@ name: "CodeQL" on: schedule: - cron: '59 10 27 * *' - push: - branches: [ "master" ] + # push: + # branches: [ "master" ] # pull_request: # branches: [ "master" ] workflow_run: From 7917fda5992fd3192a0e588c2d643d689c002923 Mon Sep 17 00:00:00 2001 From: Juarez Rudsatz Date: Thu, 14 Mar 2024 17:08:22 -0300 Subject: [PATCH 2/8] ci: allow manual trigerring of code analysis workflows --- .github/workflows/codacy-analysis.yml | 1 + .github/workflows/codeql-analysis.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/codacy-analysis.yml b/.github/workflows/codacy-analysis.yml index f5f8d4d0..7b70ab7d 100644 --- a/.github/workflows/codacy-analysis.yml +++ b/.github/workflows/codacy-analysis.yml @@ -26,6 +26,7 @@ on: branches: [ "master" ] types: - completed + workflow_dispatch: permissions: contents: read diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index f1dcfccf..db114a10 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -23,6 +23,7 @@ on: branches: [ "master" ] types: - completed + workflow_dispatch: jobs: analyze: From 17a2cf9f26e5508f474dc4617c7ce7a97fb85118 Mon Sep 17 00:00:00 2001 From: Juarez Rudsatz Date: Thu, 14 Mar 2024 17:25:35 -0300 Subject: [PATCH 3/8] ci: fix manual triggering of workflows --- .github/workflows/codacy-analysis.yml | 10 ++++++++++ .github/workflows/codeql-analysis.yml | 10 ++++++++++ .github/workflows/publish-release.yml | 11 +++++++++++ .github/workflows/test-changes.yml | 16 ++++++++-------- 4 files changed, 39 insertions(+), 8 deletions(-) diff --git a/.github/workflows/codacy-analysis.yml b/.github/workflows/codacy-analysis.yml index 7b70ab7d..e422e6fb 100644 --- a/.github/workflows/codacy-analysis.yml +++ b/.github/workflows/codacy-analysis.yml @@ -27,6 +27,16 @@ on: types: - completed workflow_dispatch: + inputs: + logLevel: + description: 'Log level' + required: true + default: 'warning' + type: choice + options: + - info + - warning + - debug permissions: contents: read diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index db114a10..398b34a5 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -24,6 +24,16 @@ on: types: - completed workflow_dispatch: + inputs: + logLevel: + description: 'Log level' + required: true + default: 'warning' + type: choice + options: + - info + - warning + - debug jobs: analyze: diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index cc9d12be..86921f64 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -3,6 +3,17 @@ name: release on: release: types: [published] + workflow_dispatch: + inputs: + logLevel: + description: 'Log level' + required: true + default: 'warning' + type: choice + options: + - info + - warning + - debug jobs: pypi: diff --git a/.github/workflows/test-changes.yml b/.github/workflows/test-changes.yml index 6d79f69d..45beb88e 100644 --- a/.github/workflows/test-changes.yml +++ b/.github/workflows/test-changes.yml @@ -19,14 +19,14 @@ on: - info - warning - debug - tags: - description: 'Test scenario tags' - required: false - type: boolean - environment: - description: 'Environment to run tests against' - type: environment - required: true + # tags: + # description: 'Test scenario tags' + # required: false + # type: boolean + # environment: + # description: 'Environment to run tests against' + # type: environment + # required: true jobs: run-guard: From d2c0bd6fd8bc41e9f643b77535c52afc3ed0e177 Mon Sep 17 00:00:00 2001 From: Juarez Rudsatz Date: Thu, 14 Mar 2024 17:25:59 -0300 Subject: [PATCH 4/8] ci: fixing matrix.python on release workflow --- .github/workflows/publish-release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 86921f64..1517a8eb 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -17,6 +17,9 @@ on: jobs: pypi: + strategy: + matrix: + python: ['3.10'] runs-on: ubuntu-latest steps: - name: Checkout source code From 3797293ff78da875cfb72bd6fcbe68c04b06e92d Mon Sep 17 00:00:00 2001 From: Juarez Rudsatz Date: Thu, 14 Mar 2024 17:26:37 -0300 Subject: [PATCH 5/8] ci: allow trigerring of code analysis workflows on any branch --- .github/workflows/codacy-analysis.yml | 1 - .github/workflows/codeql-analysis.yml | 1 - 2 files changed, 2 deletions(-) diff --git a/.github/workflows/codacy-analysis.yml b/.github/workflows/codacy-analysis.yml index e422e6fb..e408a6f2 100644 --- a/.github/workflows/codacy-analysis.yml +++ b/.github/workflows/codacy-analysis.yml @@ -23,7 +23,6 @@ on: # branches: [ "master" ] workflow_run: workflows: [Test Changes] - branches: [ "master" ] types: - completed workflow_dispatch: diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 398b34a5..bc425d95 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -20,7 +20,6 @@ on: # branches: [ "master" ] workflow_run: workflows: [Test Changes] - branches: [ "master" ] types: - completed workflow_dispatch: From 47a3c81d4e3849fdc18628ec30cd15769b855348 Mon Sep 17 00:00:00 2001 From: Juarez Rudsatz Date: Thu, 14 Mar 2024 17:29:31 -0300 Subject: [PATCH 6/8] fix: ci fails with version 3.9.2 with python3.12 too --- requirements-formats.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-formats.txt b/requirements-formats.txt index 34692330..67698c5c 100644 --- a/requirements-formats.txt +++ b/requirements-formats.txt @@ -13,4 +13,4 @@ fastavro==0.24.2 ; python_version < '3.0' gspread>=3.4.0 ; python_version >= '3.4' # version 3.9.2 fails with python3.12 on macos-latest: PyTables/PyTables#1093 -tables ; python_version != '3.12' +tables ; python_version <= '3.10' From d0bd0092d307d21516b55207c4d90d284e685231 Mon Sep 17 00:00:00 2001 From: Juarez Rudsatz Date: Thu, 14 Mar 2024 18:21:42 -0300 Subject: [PATCH 7/8] ci: no pytables for sys_platform darwin --- requirements-formats.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/requirements-formats.txt b/requirements-formats.txt index 67698c5c..f203de66 100644 --- a/requirements-formats.txt +++ b/requirements-formats.txt @@ -13,4 +13,5 @@ fastavro==0.24.2 ; python_version < '3.0' gspread>=3.4.0 ; python_version >= '3.4' # version 3.9.2 fails with python3.12 on macos-latest: PyTables/PyTables#1093 -tables ; python_version <= '3.10' +tables ; sys_platform != 'darwin' + From 0365c907bac60a4610a35a3049d8a69a5676a939 Mon Sep 17 00:00:00 2001 From: Juarez Rudsatz Date: Thu, 14 Mar 2024 18:36:38 -0300 Subject: [PATCH 8/8] ci: remove pull_request labeled trigger on Test Changes --- .github/workflows/test-changes.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-changes.yml b/.github/workflows/test-changes.yml index 45beb88e..01439065 100644 --- a/.github/workflows/test-changes.yml +++ b/.github/workflows/test-changes.yml @@ -7,7 +7,7 @@ on: push: branches: [ "master" ] pull_request: - types: [opened, reopened, synchronize, ready_for_review, labeled] + types: [opened, reopened, synchronize, ready_for_review] # labeled workflow_dispatch: inputs: logLevel: