Test with venv
@@ -24,14 +24,16 @@ jobs:
- uses: actions/cache@v2
id: cache-venv
with:
- path: ~/.cache/pip
- key: ${{ runner.os }}-venv-${{ hashFiles('**/requirements*.txt') }}
+ path: ./test_env
+ key: $venv-{{ runner.os }}-${{ hashFiles('requirements.txt') }}-${{ requirements_test.txt }}
restore-keys: |
${{ runner.os }}-venv-
- name: Install dependencies
run: |
sudo apt install git git-annex
sudo apt install mpich libmpich-dev
+ python -m venv test_env
+ ./test_env/bin/activate
python -m pip install --upgrade pip
pip install setuptools wheel twine
##
@@ -54,6 +56,7 @@ jobs:
${{ runner.os }}-datasets
- name: Test with pytest
run: |
+ ./test_env/bin/activate
pytest
