testdocker

This commit is contained in:
George Hotz 2023-01-09 12:41:44 -08:00
commit bfd4f4e35c
3 changed files with 14 additions and 1 deletions

View file

@ -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())"

View file

@ -14,7 +14,7 @@ setup(name='tinygrad',
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"

4
test/Dockerfile Normal file
View file

@ -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