Skip to content

Commit e34a5cc

Browse files
committed
ci: simplify workflow to check + macOS highest-pytorch fast
1 parent 6dab6cc commit e34a5cc

1 file changed

Lines changed: 7 additions & 57 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 7 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ concurrency:
1515

1616
jobs:
1717

18-
# Stage 1 — initial checks
1918
check:
2019
name: make check
2120
runs-on: ubuntu-latest
@@ -28,72 +27,23 @@ jobs:
2827
enable-cache: false
2928
- run: make check
3029

31-
docs:
32-
name: make docs
33-
runs-on: ubuntu-latest
34-
timeout-minutes: 30
35-
steps:
36-
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
37-
- name: Install uv
38-
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
39-
with:
40-
enable-cache: false
41-
- run: make docs
42-
43-
44-
# Stage 2 — Only runs once every Stage 1 checks are green.
45-
ubuntu-tests:
46-
name: ubuntu / torch=${{ matrix.torch }} / ${{ matrix.speed }}
47-
needs: [check, docs]
48-
runs-on: ubuntu-latest
49-
timeout-minutes: 60
50-
strategy:
51-
fail-fast: false
52-
matrix:
53-
torch: [lowest, highest]
54-
speed: [fast, slow]
55-
steps:
56-
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
57-
- name: Install uv
58-
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
59-
with:
60-
enable-cache: false
61-
- name: Run tests
62-
run: |
63-
if [ "${{ matrix.speed }}" = "slow" ]; then MARKER="slow"; else MARKER="not slow"; fi
64-
make test-${{ matrix.torch }}-pytorch PYTEST_ARGS="--marker '$MARKER' --junit"
65-
- name: Upload test results
66-
if: failure()
67-
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
68-
with:
69-
name: test-results-ubuntu-${{ matrix.torch }}-${{ matrix.speed }}
70-
path: test-results/
71-
if-no-files-found: ignore
72-
7330
macos-tests:
74-
name: macos / torch=highest / ${{ matrix.speed }}
75-
needs: [check, docs]
76-
if: github.repository_owner == 'apple'
77-
runs-on: [self-hosted, macos]
31+
name: macos / torch=highest / fast
32+
needs: [check]
33+
if: github.repository == 'apple/coreai-optimization'
34+
runs-on: [self-hosted, macos, tahoe, ARM64]
7835
timeout-minutes: 60
79-
strategy:
80-
fail-fast: false
81-
matrix:
82-
speed: [fast, slow]
8336
steps:
8437
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
8538
- name: Install uv
8639
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
8740
with:
8841
enable-cache: false
8942
- name: Run tests
90-
run: |
91-
if [ "${{ matrix.speed }}" = "slow" ]; then MARKER="slow"; else MARKER="not slow"; fi
92-
make test-highest-pytorch PYTEST_ARGS="--marker '$MARKER' --junit"
43+
run: make test-highest-pytorch PYTEST_ARGS="--marker 'not slow' --junit"
9344
- name: Upload test results
94-
if: failure()
45+
if: always()
9546
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
9647
with:
97-
name: test-results-macos-highest-${{ matrix.speed }}
48+
name: test-results-macos-highest-fast
9849
path: test-results/
99-
if-no-files-found: ignore

0 commit comments

Comments
 (0)