Просмотр исходного кода

Fix CI workflows [mac-test] (#2025)

* Fix CI settings

* Stop saving cpu cycles for GitHub

* Conditionally run mac tests

* Random push to trigger CI checks again

---------

Co-authored-by: Graham Neubig <neubig@gmail.com>
Boxuan Li 1 год назад
Родитель
Сommit
593b8d468b
2 измененных файлов с 1 добавлено и 24 удалено
  1. 1 13
      .github/workflows/run-integration-tests.yml
  2. 0 11
      .github/workflows/run-unit-tests.yml

+ 1 - 13
.github/workflows/run-integration-tests.yml

@@ -14,11 +14,6 @@ on:
       - 'docs/**'
       - 'evaluation/**'
   pull_request:
-    paths-ignore:
-      - '**/*.md'
-      - 'frontend/**'
-      - 'docs/**'
-      - 'evaluation/**'
 
 jobs:
   integration-tests-on-linux:
@@ -61,6 +56,7 @@ jobs:
   integration-tests-on-mac:
     name: Integration Tests on MacOS
     runs-on: macos-13
+    if: contains(github.event.pull_request.title, 'mac') || contains(github.event.pull_request.title, 'Mac')
     strategy:
       fail-fast: false
       matrix:
@@ -103,11 +99,3 @@ jobs:
         uses: codecov/codecov-action@v4
         env:
           CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
-
-  test_matrix_success:
-    name: All Integration Tests Passed
-    runs-on: ubuntu-latest
-    # make mac tests as optional as they are too slow
-    needs: [integration-tests-on-linux]
-    steps:
-      - run: echo Done!

+ 0 - 11
.github/workflows/run-unit-tests.yml

@@ -14,11 +14,6 @@ on:
       - 'docs/**'
       - 'evaluation/**'
   pull_request:
-    paths-ignore:
-      - '**/*.md'
-      - 'frontend/**'
-      - 'docs/**'
-      - 'evaluation/**'
 
 jobs:
   test-on-macos:
@@ -129,9 +124,3 @@ jobs:
         uses: codecov/codecov-action@v4
         env:
           CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
-  test_matrix_success:
-    name: All Mac/Linux Tests Passed
-    runs-on: ubuntu-latest
-    needs: [test-on-macos, test-on-linux, test-for-sandbox]
-    steps:
-      - run: echo Done!