Skip to content

Commit c94ef24

Browse files
authored
Merge pull request #5 from pytorch-labs/ci1
Test installation CI
2 parents 416dc0f + 36e106c commit c94ef24

File tree

3 files changed

+32
-1
lines changed

3 files changed

+32
-1
lines changed

.github/workflows/test_install.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Test Installation
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
test-installation:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v2
18+
19+
- name: Set up Python 3.8
20+
uses: actions/setup-python@v2
21+
with:
22+
python-version: 3.8
23+
24+
- name: Install dependencies
25+
run: |
26+
pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu121
27+
pip install -e .
28+
29+
- name: Test import
30+
run: |
31+
python -c "from torchao import quantization"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
setup(
1010
name='torchao',
11-
version='0.1',
11+
version='0.0.1',
1212
packages=find_packages(),
1313
install_requires=[
1414
'torch',

torchao/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)