瀏覽代碼

use test on ubuntu as gatekeeper

Peter Bieringer 1 月之前
父節點
當前提交
2ac3d269c6
共有 1 個文件被更改,包括 20 次插入3 次删除
  1. 20 3
      .github/workflows/test.yml

+ 20 - 3
.github/workflows/test.yml

@@ -3,11 +3,28 @@ on: [push, pull_request]
 
 jobs:
 
-  test-python-latest:
+  test-ubuntu-latest-python-latest:
     needs: lint
     strategy:
       matrix:
-        os: [ubuntu-latest, macos-latest, windows-latest]
+        os: [ubuntu-latest]
+        python-version: ['3.14']
+    runs-on: ${{ matrix.os }}
+    steps:
+      - uses: actions/checkout@v4
+      - uses: actions/setup-python@v5
+        with:
+          python-version: ${{ matrix.python-version }}
+      - name: Install Test dependencies
+        run: pip install tox
+      - name: Test with latest Python on Ubuntu
+        run: tox -c pyproject.toml -e py
+
+  test-python-latest:
+    needs: test-ubuntu-latest-python-latest:
+    strategy:
+      matrix:
+        os: [macos-latest, windows-latest]
         python-version: ['3.14']
     runs-on: ${{ matrix.os }}
     steps:
@@ -17,7 +34,7 @@ jobs:
           python-version: ${{ matrix.python-version }}
       - name: Install Test dependencies
         run: pip install tox
-      - name: Test with latest Python
+      - name: Test with latest Python on other OS
         run: tox -c pyproject.toml -e py
 
   test: