Fix CI Dependency test (#4109)
This commit is contained in:
parent
a324e3aa31
commit
33175a59e7
7
.github/workflows/dependency_test.yml
vendored
7
.github/workflows/dependency_test.yml
vendored
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user