Skip to content

Commit

Permalink
testdocker
Browse files Browse the repository at this point in the history
  • Loading branch information
geohot committed Jan 9, 2023
1 parent 4885fce commit bfd4f4e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,3 +172,12 @@ jobs:
run: pip install -e '.[testing]'
- name: Run mypy
run: mypy tinygrad/

testdocker:
name: Docker Test
runs-on: ubuntu-latest
steps:
- name: Build Docker
run: docker build -t tinygrad -f test/Dockerfile .
- name: Test Docker
run: docker run -it --rm tinygrad /usr/bin/env python3 -c "from tinygrad.tensor import Tensor; print(Tensor.eye(3).numpy())"
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
license='MIT',
long_description=long_description,
long_description_content_type='text/markdown',
packages = ['tinygrad'],
packages = ['tinygrad', 'tinygrad.llops', 'tinygrad.nn'],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License"
Expand Down
4 changes: 4 additions & 0 deletions test/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM ubuntu:20.04
RUN apt-get update
RUN apt-get install -y python3-pip git
RUN pip3 install git+https://github.com/geohot/tinygrad.git

0 comments on commit bfd4f4e

Please sign in to comment.