Skip to content

Commit

Permalink
update test script for protobuf 4 (fixes #698) (#704)
Browse files Browse the repository at this point in the history
* update test script

* pin pillow version for demo.py
  • Loading branch information
lanpa committed Jul 9, 2023
1 parent 55ef907 commit 7693d1a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
python-version: 3.9
- name: Run examples
run: |
pip install six tensorboard pytest matplotlib torchvision protobuf==4.22.3 moviepy==1.0.3 imageio==2.27
pip install six tensorboard pytest matplotlib torchvision protobuf==4.22.3 moviepy==1.0.3 imageio==2.27 pillow==9.5.0
python examples/demo.py
python examples/demo_graph.py
python examples/demo_embedding.py
Expand Down
2 changes: 1 addition & 1 deletion run_pytest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ if [ `ps -ef|grep visdom |wc -l` = "1" ]
trap "kill -SIGTERM $!" EXIT
fi

PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python pytest
pytest
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def run(self):
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
],
cmdclass={
'develop': PostDevelopCommand,
Expand Down
3 changes: 2 additions & 1 deletion test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ flake8
pytest
torch
torchvision
protobuf==3.20.3
protobuf==4.22.3
numpy
tensorboard
boto3
Expand All @@ -12,4 +12,5 @@ soundfile
visdom
onnx
pytest-cov
imageio==2.27

0 comments on commit 7693d1a

Please sign in to comment.