-
Notifications
You must be signed in to change notification settings - Fork 26
feat(experiments)!: modernize Python experiment workflows #145
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
Open
acgetchell
wants to merge
4
commits into
main
Choose a base branch
from
feat/143-python-314-pytorch-migration
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
e171691
feat(experiments)!: modernize Python experiment workflows
acgetchell b3acb49
fix: harden experiment and repository validation
acgetchell 4e65669
fix(tooling): harden cross-platform validation
acgetchell c3f73d3
fix(ci): pin Python for sanitizer bootstrap
acgetchell 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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,84 @@ | ||
| --- | ||
| name: Python experiments | ||
|
|
||
| "on": | ||
| push: | ||
| branches: | ||
| - main | ||
| paths: | ||
| - .github/actions/setup-just/action.yml | ||
| - .github/workflows/python-experiments.yml | ||
| - .python-version | ||
| - Justfile | ||
| - pyproject.toml | ||
| - scripts/experiment_tests/** | ||
| - scripts/mnist_experiment.py | ||
| - scripts/optimize_initialize.py | ||
| - ty.toml | ||
| - uv.lock | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| paths: | ||
| - .github/actions/setup-just/action.yml | ||
| - .github/workflows/python-experiments.yml | ||
| - .python-version | ||
| - Justfile | ||
| - pyproject.toml | ||
| - scripts/experiment_tests/** | ||
| - scripts/mnist_experiment.py | ||
| - scripts/optimize_initialize.py | ||
| - ty.toml | ||
| - uv.lock | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| offline: | ||
| name: ${{ matrix.name }} | ||
| runs-on: ${{ matrix.os }} | ||
| timeout-minutes: 30 | ||
|
|
||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| include: | ||
| - name: Ubuntu x86-64 | ||
| os: ubuntu-latest | ||
| - name: macOS ARM64 | ||
| os: macos-15 | ||
| - name: Windows x86-64 | ||
| os: windows-latest | ||
|
|
||
| steps: | ||
| - name: Check out repository | ||
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
| with: | ||
| persist-credentials: false | ||
|
|
||
| - name: Set up Just | ||
| uses: ./.github/actions/setup-just | ||
|
|
||
| - name: Resolve uv version | ||
| id: tool-versions | ||
| shell: bash | ||
| run: echo "uv=$(just --evaluate uv_version)" >> "$GITHUB_OUTPUT" | ||
|
|
||
| - name: Set up Python | ||
| uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | ||
| with: | ||
| python-version-file: .python-version | ||
|
|
||
| - name: Set up uv | ||
| uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0 | ||
| with: | ||
| version: ${{ steps.tool-versions.outputs.uv }} | ||
|
|
||
| - name: Resolve wheels, type-check, and run offline experiment tests | ||
| run: just python-experiment-check |
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 |
|---|---|---|
| @@ -1 +1 @@ | ||
| 3.12 | ||
| 3.14 |
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.
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.