Check tutorials on GPU
@@ -10,9 +10,18 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
run: |
nvidia-smi
+
python -m pip install --upgrade pip
pip install -e "."
pip install -r requirements/requirements.txt
pip install -r requirements/requirements-pytorch.txt
- pip install -r requirements/requirements-dev.txt
- pytest cleverhans/future/torch/tests
\ No newline at end of file
+ pip install -r requirements/requirements-dev.txt\
+
+ find tutorials/future/torch/ -name '*.py' | while read f
+ do
+ python $f
+ if [ $? -ne 0 ]
+ then
+ exit 1
+ fi
+ done
\ No newline at end of file
