-
Notifications
You must be signed in to change notification settings - Fork 16
Adds initial CI suport #52
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 8 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
e6b5e4c
initial commit for CI
4431f35
remove policy actor from import
0ec4662
remove extra space
9ed0da1
add ci yaml
c25ab97
change jobs
1fb933c
paths?
14f37cf
?
8d53616
trying torchtune config
1927240
updates
07c8672
add assets version
4e37fa4
?2
00d6001
increase timeout
2216d09
remove torchstore deps for oss build (doesn't exist)
7a0aa89
add a monarch no torch wheel
cec1aad
add a monarch no torch wheel
234770b
add wheel stuff
184e3d7
remove wrong wheel
8042d7e
fix wheel
80ec428
test w/ conda
02a878f
conda init
8aaffc5
conda init
6bb65d9
fix wheel name
7c33189
re-add python versions
0fb71cb
Merge branch 'main' into ci
fdd65c1
only replay buffer
0d18550
removes stack stuff
48d1f2a
add expecttest
560c878
remove commented line
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,43 @@ | ||
name: Unit Test | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
|
||
concurrency: | ||
group: unit-test${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
defaults: | ||
run: | ||
shell: bash -l -eo pipefail {0} | ||
|
||
jobs: | ||
unit_tests: | ||
if: github.repository_owner == 'pytorch' | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ['3.9', '3.10', '3.11'] | ||
allenwang28 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
steps: | ||
- name: Check out repo | ||
uses: actions/checkout@v4 | ||
- name: Setup conda env | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
auto-update-conda: true | ||
miniconda-version: "latest" | ||
activate-environment: test | ||
python-version: ${{ matrix.python-version }} | ||
- name: Update pip | ||
run: python -m pip install --upgrade pip | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install torch torchvision torchao | ||
allenwang28 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
python -m pip install -e ".[dev]" | ||
python -m pip install -e ".[oss]" | ||
- name: Run unit tests with coverage | ||
run: pytest tests --cov=. --cov-report=xml --durations=20 -vv | ||
- name: Upload Coverage to Codecov | ||
uses: codecov/codecov-action@v3 |
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,5 @@ | ||
# Copyright (c) Meta Platforms, Inc. and affiliates. | ||
allenwang28 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
# All rights reserved. | ||
# | ||
# This source code is licensed under the BSD-style license found in the | ||
# LICENSE file in the root directory of this source tree. |
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.