Use virtualenv to isolate from VM changes
e.g. update of 20200709 breaks dependencies with PyYAML
because new package aws-sam-cli has ben added
487c88b726
This commit is contained in:
parent
d041ef6a54
commit
c10ebc3a05
6
.github/workflows/flask.yml
vendored
6
.github/workflows/flask.yml
vendored
|
@ -1,4 +1,4 @@
|
||||||
name: Django CI
|
name: Flask CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
@ -46,6 +46,9 @@ jobs:
|
||||||
sudo apt-get update -qy
|
sudo apt-get update -qy
|
||||||
sudo apt-get -y install postgresql-client
|
sudo apt-get -y install postgresql-client
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
|
pip install virtualenv
|
||||||
|
virtualenv env
|
||||||
|
source env/bin/activate
|
||||||
pip install flake8 pytest
|
pip install flake8 pytest
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
|
|
||||||
|
@ -63,5 +66,6 @@ jobs:
|
||||||
|
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
run: |
|
run: |
|
||||||
|
source env/bin/activate
|
||||||
pytest -m mvp --maxfail=5 tests/
|
pytest -m mvp --maxfail=5 tests/
|
||||||
|
|
||||||
|
|
Reference in a new issue