Repository: Morpheus636/zeal-cli (language: python)

Issue:
Cherrypick action updates into v1.x



Discussion / hints:

Fix patch:
diff --git a/.github/workflows/code_analysis_pull.yml b/.github/workflows/code_analysis_pull.yml
index 4ea55d6..59d7cc6 100644
--- a/.github/workflows/code_analysis_pull.yml
+++ b/.github/workflows/code_analysis_pull.yml
@@ -1,6 +1,8 @@
 name: Code Analysis on Pull
 
 on:
+  push:
+    branches: [ main, release/** ]
   pull_request:
     branches: [ main, release/** ]
 
diff --git a/.github/workflows/code_analysis_push.yml b/.github/workflows/code_analysis_push.yml
deleted file mode 100644
index b0b9483..0000000
--- a/.github/workflows/code_analysis_push.yml
+++ /dev/null
@@ -1,44 +0,0 @@
-name: Code Analysis on Push
-
-on:
-  push:
-    branches: [ main, release/** ]
-
-jobs:
-  code_analysis:
-    runs-on: ubuntu-latest
-    steps:
-      - name: Checkout Code
-        uses: actions/checkout@v2
-
-      - name: Setup Python
-        uses: actions/setup-python@v1
-        with:
-          python-version: 3.9
-
-      - name: Setup Poetry
-        uses: Gr1N/setup-poetry@v7
-
-      - name: Install Packages
-        run: poetry install
-
-      - name: Flake8 (Linter)
-        run: poetry run flake8
-      
-      - name: isort (Import Sorter)
-        run: poetry run isort
-  
-      - name: Black (Code Formatter)
-        run: poetry run black
-
-      - name: Check for changes
-        id: changes
-        uses: UnicornGlobal/has-changes-action@v1.0.11
-    
-      - name: Commit and Push Changes
-        if: steps.changes.outputs.changed == 1
-        run: |
-          git config user.name code-analysis-action
-          git config user.email github-actions@github.com
-          git commit -a -m "Changes by Code Analysis Action" --no-verify
-          git push


Test patch:
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index b87103a..b3057f0 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -8,7 +8,12 @@ on:
 
 jobs:
   tests:
-    runs-on: ubuntu-latest
+    runs-on: ${{ matrix.os}}
+
+    strategy:
+      matrix:
+        os: [ubuntu-latest]
+
     steps:
       - name: Checkout Code
         uses: actions/checkout@v2