Skip to content

Commit 4416d1b

Browse files
Update pipy_release.yml
1 parent 515171b commit 4416d1b

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

.github/workflows/pipy_release.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
name: Publish PyTorchLayerViz to PyPI
1+
name: Test and Publish PyTorchLayerViz to PyPI
22

33
on:
44
push:
55
tags:
66
- '*'
77

88
jobs:
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

0 commit comments

Comments
 (0)