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

Issue:
Build Check on PR and Push
Create a GitHub action that checks that `make build` works on PR


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..d8cece1 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
@@ -24,5 +29,8 @@ jobs:
       - name: Install Packages
         run: poetry install
 
-      - name: Test
+      - name: Run PyTest
         run: poetry run pytest
+
+      - name: Build Test
+        run: make build
\ No newline at end of file