-
Notifications
You must be signed in to change notification settings - Fork 10
ci: Add initial CI #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+67
−2
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
f1b61c3
build: exclude packages newer than 7 days
guru-desh 397617f
ci: add github CI workflow
guru-desh fb7d6e7
style: fix pyproject toml formatting
guru-desh cd6cf85
ci: fix darker diff base (fetch-depth 0 + origin/main...)
guru-desh 697dcb9
style: add comment explaining exclude-newer additions
guru-desh d8de09f
ci: add run-name for readable workflow run titles
guru-desh ce5cc35
ci: use consistent job display-name convention
guru-desh fa3931f
ci: name the checkout steps
guru-desh 6db53a2
ci: name run steps after their make targets
guru-desh 6817ac9
build: shorten exclude-newer window from 7 to 3 days
guru-desh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| name: CI | ||
|
|
||
| run-name: >- | ||
| ${{ github.event_name == 'pull_request' | ||
| && format('CI · PR #{0} · {1} · @{2}', github.event.pull_request.number, github.event.pull_request.head.ref, github.actor) | ||
| || format('CI · push {0} · @{1}', github.ref_name, github.actor) }} | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: [main] | ||
| push: | ||
|
dengqiaoyu marked this conversation as resolved.
|
||
| branches: [main] | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
dengqiaoyu marked this conversation as resolved.
|
||
|
|
||
| jobs: | ||
|
|
||
| check: | ||
| name: macOS / make check | ||
| if: github.repository == 'apple/coreai-optimization' | ||
| runs-on: [self-hosted, macos, tahoe, ARM64] | ||
| timeout-minutes: 30 | ||
| steps: | ||
| - name: Check out repository | ||
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | ||
| with: | ||
| fetch-depth: 0 | ||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0 | ||
| with: | ||
| enable-cache: false | ||
|
dengqiaoyu marked this conversation as resolved.
|
||
| - name: Run `make check` | ||
| run: make check | ||
|
|
||
| macos-tests: | ||
| name: macOS / make test-highest-pytorch / markers=not-slow | ||
| needs: [check] | ||
| if: github.repository == 'apple/coreai-optimization' | ||
| runs-on: [self-hosted, macos, tahoe, ARM64] | ||
| timeout-minutes: 60 | ||
| steps: | ||
| - name: Check out repository | ||
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | ||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0 | ||
| with: | ||
| enable-cache: false | ||
| - name: Run `make test-highest-pytorch` | ||
| run: make test-highest-pytorch PYTEST_ARGS="--marker 'not slow' --junit" | ||
| - name: Upload test results | ||
| if: always() | ||
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | ||
| with: | ||
| name: test-results-macos-highest-fast | ||
| path: test-results/ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.