mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-06-24 02:14:17 +00:00
testdocker
This commit is contained in:
parent
4885fce56e
commit
bfd4f4e35c
3 changed files with 14 additions and 1 deletions
9
.github/workflows/test.yml
vendored
9
.github/workflows/test.yml
vendored
|
|
@ -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
setup.py
2
setup.py
|
|
@ -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
4
test/Dockerfile
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue