Skip to content

Commit

Permalink
Add tests for imports when optional packages are unavailable (#428)
Browse files Browse the repository at this point in the history
* update CI install

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Jirka <jirka.borovec@seznam.cz>
  • Loading branch information
4 people authored Aug 13, 2021
1 parent 5ab4fae commit fb558d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 50 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/ci_install-pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,11 @@ jobs:

- name: Create package
run: |
# python setup.py check --metadata --strict
python setup.py sdist
pip install cython setuptools wheel
python setup.py sdist bdist_wheel
- name: Install package
if: runner.os != 'windows'
working-directory: ./dist
run: |
pip install virtualenv
virtualenv vEnv ; source vEnv/bin/activate
# pip install -r requirements.txt
pip install torchvision matplotlib
pip install dist/*
cd .. & python -c "import pytorch_lightning as pl ; print(pl.__version__)"
cd .. & python -c "import pl_bolts ; print(pl_bolts.__version__)"
deactivate ; rm -rf vEnv
pip install $(python -c "import glob ; pkg = glob.glob('*.whl')[0] ; print(pkg)")
python -c "import pl_bolts ; print(pl_bolts.__version__)"
39 changes: 0 additions & 39 deletions tests/datamodules/test_imports.py

This file was deleted.

0 comments on commit fb558d1

Please sign in to comment.