Rahul Anand 1 anno fa
parent
commit
9a2591d0f6

+ 8 - 2
.github/workflows/run-integration-tests.yml

@@ -7,8 +7,12 @@ concurrency:
 on:
 on:
   push:
   push:
     branches:
     branches:
-    - main
+      - main
+    paths-ignore:
+      - '**/*.md'
   pull_request:
   pull_request:
+    paths-ignore:
+      - '**/*.md'
 
 
 jobs:
 jobs:
   integration-tests:
   integration-tests:
@@ -64,13 +68,15 @@ jobs:
             WORKSPACE_MOUNT_PATH="$GITHUB_WORKSPACE/workspace" \
             WORKSPACE_MOUNT_PATH="$GITHUB_WORKSPACE/workspace" \
             poetry run pytest --cov=agenthub --cov=opendevin --cov-report=xml \
             poetry run pytest --cov=agenthub --cov=opendevin --cov-report=xml \
             -s ./tests/integration
             -s ./tests/integration
+
       - name: Upload coverage to Codecov
       - name: Upload coverage to Codecov
         uses: codecov/codecov-action@v4
         uses: codecov/codecov-action@v4
         env:
         env:
           CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
           CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
+
   test_matrix_success:
   test_matrix_success:
     name: All Integration Tests Passed
     name: All Integration Tests Passed
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
     needs: [integration-tests]
     needs: [integration-tests]
     steps:
     steps:
-    - run: echo Done!
+      - run: echo Done!

+ 12 - 8
.github/workflows/run-unit-tests.yml

@@ -7,15 +7,19 @@ concurrency:
 on:
 on:
   push:
   push:
     branches:
     branches:
-    - main
+      - main
+    paths-ignore:
+      - "**/*.md"
   pull_request:
   pull_request:
+    paths-ignore:
+      - "**/*.md"
 
 
 jobs:
 jobs:
   test-on-macos:
   test-on-macos:
     name: Test on macOS
     name: Test on macOS
     runs-on: macos-13
     runs-on: macos-13
     env:
     env:
-      INSTALL_DOCKER: '0'  # Set to '0' to skip Docker installation
+      INSTALL_DOCKER: "0" # Set to '0' to skip Docker installation
     strategy:
     strategy:
       matrix:
       matrix:
         python-version: ["3.11"]
         python-version: ["3.11"]
@@ -30,7 +34,7 @@ jobs:
         uses: actions/setup-python@v5
         uses: actions/setup-python@v5
         with:
         with:
           python-version: ${{ matrix.python-version }}
           python-version: ${{ matrix.python-version }}
-          cache: 'poetry'
+          cache: "poetry"
 
 
       - name: Install Python dependencies using Poetry
       - name: Install Python dependencies using Poetry
         run: poetry install
         run: poetry install
@@ -59,7 +63,7 @@ jobs:
     name: Test on Linux
     name: Test on Linux
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
     env:
     env:
-      INSTALL_DOCKER: '0'  # Set to '0' to skip Docker installation
+      INSTALL_DOCKER: "0" # Set to '0' to skip Docker installation
     strategy:
     strategy:
       matrix:
       matrix:
         python-version: ["3.11"]
         python-version: ["3.11"]
@@ -74,7 +78,7 @@ jobs:
         uses: actions/setup-python@v5
         uses: actions/setup-python@v5
         with:
         with:
           python-version: ${{ matrix.python-version }}
           python-version: ${{ matrix.python-version }}
-          cache: 'poetry'
+          cache: "poetry"
 
 
       - name: Install Python dependencies using Poetry
       - name: Install Python dependencies using Poetry
         run: poetry install --without evaluation
         run: poetry install --without evaluation
@@ -102,8 +106,8 @@ jobs:
       - name: Set up Python
       - name: Set up Python
         uses: actions/setup-python@v5
         uses: actions/setup-python@v5
         with:
         with:
-          python-version: '3.11'
-          cache: 'poetry'
+          python-version: "3.11"
+          cache: "poetry"
 
 
       - name: Install Python dependencies using Poetry
       - name: Install Python dependencies using Poetry
         run: poetry install
         run: poetry install
@@ -124,4 +128,4 @@ jobs:
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
     needs: [test-on-macos, test-on-linux, test-for-sandbox]
     needs: [test-on-macos, test-on-linux, test-for-sandbox]
     steps:
     steps:
-    - run: echo Done!
+      - run: echo Done!