-
Notifications
You must be signed in to change notification settings - Fork 14
Support find cache + gh action for core mlc actions #39
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
Merged
Changes from 6 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
83a316b
support find cache
anandhu-eng e4a05f5
initial commit for testing mlc core actions
anandhu-eng a08f555
fix branch
anandhu-eng 0982081
install mlcflow from source of pr
anandhu-eng 1074131
fix repo key error
anandhu-eng dff7953
use action to clone source repo
anandhu-eng 85ca2a3
added more extensive checking
anandhu-eng 45a4314
silence the prompts - quiet
anandhu-eng b784d5f
expanded validate function
anandhu-eng 0cc856a
test commit
anandhu-eng 25c2ca2
fix repo path
anandhu-eng 9d57d0e
test commit
anandhu-eng 19d95b0
test commit
anandhu-eng 7ef0073
test commit
anandhu-eng 6be43bf
Merge branch 'dev' into dev
arjunsuresh 5799f4d
Merge branch 'dev' into dev
arjunsuresh 6e57523
Merge branch 'dev' into dev
arjunsuresh 9fbac92
Update test-mlc-core-actions.yaml
arjunsuresh af3422d
Update test-mlc-core-actions.yaml
arjunsuresh 60c5f99
Update main.py
arjunsuresh bc80c4a
Update test-mlc-core-actions.yaml
arjunsuresh 5b9cfe8
Merge branch 'dev' into dev
arjunsuresh 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,66 @@ | ||
| name: MLC core actions test | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: [ "main", "dev" ] | ||
| paths: | ||
| - '.github/workflows/test-mlc-core-actions.yml' | ||
| - '**' | ||
| - '!**.md' | ||
|
|
||
| jobs: | ||
| test_mlc_core_actions: | ||
|
|
||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| python-version: ["3.12", "3.8"] | ||
| os: ["ubuntu-latest", "windows-latest", "macos-latest"] | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Set up Python ${{ matrix.python-version }} | ||
| uses: actions/setup-python@v3 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
|
|
||
| - name: Configure git longpaths (Windows) | ||
| if: matrix.os == 'windows-latest' | ||
| run: | | ||
| git config --system core.longpaths true | ||
|
|
||
| - name: Install mlcflow from the pull request's source repository and branch | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| python -m pip install --ignore-installed --verbose pip setuptools | ||
| python -m pip install . | ||
|
|
||
| - name: Test pull repo - Pull a forked MLOps repository | ||
| run: | | ||
| mlc pull repo anandhu-eng@mlperf-automations --checkout=dev | ||
|
|
||
| - name: Test pull repo - Test conflicting repo scenario | ||
| run: | | ||
| mlc pull repo mlcommons@mlperf-automations --checkout=dev | ||
|
|
||
| - name: Test list repo - List the existing repositories | ||
| run: | | ||
| mlc list repo | ||
|
|
||
| - name: Test rm repo - Remove the forked mlperf-automation repo | ||
| run: | | ||
| mlc rm repo anandhu-eng@mlperf-automations | ||
|
|
||
| - name: Test find cache - Cache not present | ||
| run: | | ||
| mlc find cache --tags=detect,os | ||
|
|
||
| - name: Test run script - Output being used for testing mlc cache | ||
| run: | | ||
| mlc run script --tags=get,imagenet-aux | ||
anandhu-eng marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| mlc run script --tags=get,imagenet-aux,_from.dropbox | ||
|
|
||
| - name: Test find cache - More than one cache present | ||
| run: | | ||
| mlc find cache --tags=get,imagenet-aux | ||
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.