Fix CI Dependency test (#4109)

This commit is contained in:
Bert Blommers 2021-07-29 14:49:20 +01:00 committed by GitHub
parent a324e3aa31
commit 33175a59e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -13,9 +13,10 @@ jobs:
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Run test
run: |
sudo apt install python3-venv
which venv
which virtualenv
scripts/dependency_test.sh

View File

@ -46,7 +46,7 @@ test_service() {
path_to_test_file=$2
venv_path="test_venv_${service}"
overwrite "Running tests for ${service}.."
virtualenv ${venv_path} -p `which python3` > /dev/null
python -m venv ${venv_path} > /dev/null
source ${venv_path}/bin/activate > /dev/null
# Can't just install requirements-file, as it points to all dependencies
pip install -r requirements-tests.txt > /dev/null