Skip to content

Commit e12df85

Browse files
author
Ofir Gordon
committed
test links checker
1 parent b1a5f2c commit e12df85

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ jobs:
3636
twine upload --repository pypi dist/* --verbose -u __token__ -p ${{ secrets.PYPI_API_SSI_DEV_NIGHTLY_KEY }}
3737
- name: Post publish import test
3838
run: |
39-
pip install mct-nightly tensorflow torch
39+
pip install mct-nightly tensorflow torch torchvision
4040
version=$(python -c 'import model_compression_toolkit; print(model_compression_toolkit.__version__)')
4141
echo $version

tests/doc_tests/test_docs_links.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class TestDocsLinks(unittest.TestCase):
3131
@staticmethod
3232
def check_link(_url, branch_name):
3333
if 'sony/model_optimization' in _url:
34+
_url = _url.replace('/main/', f'/{branch_name}/')
3435
index = _url.find(f"/{branch_name}/")
3536
print(_url)
3637
print(branch_name)

0 commit comments

Comments
 (0)