|
41 | 41 | fail-fast: false |
42 | 42 | matrix: |
43 | 43 | python-version: ["3.10", "3.11", "3.12", "3.13"] |
44 | | - os: ["ubuntu-latest", "macos-13", "windows-latest"] |
45 | | - exclude: |
46 | | - - os: macos-13 |
47 | | - python-version: "3.13" |
| 44 | + os: ["ubuntu-latest", "windows-latest"] |
48 | 45 | runs-on: ${{ matrix.os }} |
49 | 46 | steps: |
50 | 47 | - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
@@ -82,30 +79,12 @@ jobs: |
82 | 79 | # cpu version of pytorch |
83 | 80 | pip install -e .[test] |
84 | 81 | - name: Test with pytest |
85 | | - # MacOS tests are currently too flaky and will fail almost each time. Thus, continue (green checkmark) even if |
86 | | - # they fail, but add a notice so that the failure is not completely silent |
87 | | - continue-on-error: ${{ matrix.os == 'macos-13' }} |
88 | 82 | shell: bash |
89 | 83 | env: |
90 | 84 | HF_TOKEN: ${{ secrets.HF_TOKEN }} |
91 | 85 | TRANSFORMERS_IS_CI: 1 |
92 | 86 | run: | |
93 | | - set +e |
94 | 87 | make test |
95 | | - status=$? |
96 | | - # Post a notice only if this is macOS AND tests failed |
97 | | - if [ "$status" -ne 0 ] && [ "${{ matrix.os }}" = "macos-13" ]; then |
98 | | - { |
99 | | - echo "## ⚠️ macOS tests failed" |
100 | | - echo "" |
101 | | - echo "- OS: ${{ matrix.os }}" |
102 | | - echo "- Python: ${{ matrix.python-version }}" |
103 | | - echo "" |
104 | | - echo "Check the logs from this step for details." |
105 | | - } >> "$GITHUB_STEP_SUMMARY" |
106 | | - fi |
107 | | - # Return the real status. On macOS this won't fail the job because of continue-on-error. |
108 | | - exit $status |
109 | 88 | - name: Dump cache content and diff |
110 | 89 | # This is just debug info so that we can monitor if the model cache diverges substantially |
111 | 90 | # over time and what the diverging model is. |
|
0 commit comments