-
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
Changes from 10 commits
e6b5e4c
4431f35
0ec4662
9ed0da1
c25ab97
1fb933c
14f37cf
8d53616
1927240
07c8672
4e37fa4
00d6001
2216d09
7a0aa89
cec1aad
234770b
184e3d7
8042d7e
80ec428
02a878f
8aaffc5
6bb65d9
7c33189
0fb71cb
fdd65c1
0d18550
48d1f2a
560c878
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
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: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ['3.10', '3.11', '3.12'] | ||
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 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 |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think we need this. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is mostly because the pyproject.toml uses it, similar to torchtitan does it There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But does it need it to run? IIUC, it should not and I'd prefer not to add until necessary. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0.1.0 |
Uh oh!
There was an error while loading. Please reload this page.