File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Publish PyTorchLayerViz to PyPI
1+ name : Test and Publish PyTorchLayerViz to PyPI
22
33on :
44 push :
55 tags :
66 - ' *'
77
88jobs :
9- build-n -publish :
10- name : Build and publish PyTorchLayerViz to PyPI
9+ test-and -publish :
10+ name : Test and publish PyTorchLayerViz to PyPI
1111 runs-on : ubuntu-18.04
1212 steps :
1313 - uses : actions/checkout@v2
@@ -17,11 +17,16 @@ jobs:
1717 uses : actions/setup-python@v3
1818 with :
1919 python-version : ' 3.12'
20- - name : Install build tools
21- run : >
22- python -m pip install wheel
20+ - name : Install dependencies
21+ run : |
22+ python -m pip install --upgrade pip
23+ python -m pip install -r requirements.txt
24+ python -m pip install torch torchvision matplotlib Pillow
25+ - name : Run unit tests
26+ run : |
27+ python -m unittest discover -s test -p 'test_get_feature_maps.py'
2328 - name : Build a binary wheel
24- run : >
29+ run : |
2530 python setup.py sdist bdist_wheel
2631 - name : Publish PyTorchLayerViz to PyPI
2732 uses : pypa/gh-action-pypi-publish@v1.5.0
You can’t perform that action at this time.
0 commit comments