Merge pull request #47 from eReuse/ci/isolated-python-env
Use virtualenv to isolate from VM changes
This commit is contained in:
commit
2d27fdea75
|
@ -1,11 +1,11 @@
|
|||
name: Django CI
|
||||
name: Flask CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master, testing]
|
||||
pull_request:
|
||||
branches: [master, testing]
|
||||
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -46,6 +46,9 @@ jobs:
|
|||
sudo apt-get update -qy
|
||||
sudo apt-get -y install postgresql-client
|
||||
python -m pip install --upgrade pip
|
||||
pip install virtualenv
|
||||
virtualenv env
|
||||
source env/bin/activate
|
||||
pip install flake8 pytest
|
||||
pip install -r requirements.txt
|
||||
|
||||
|
@ -63,5 +66,6 @@ jobs:
|
|||
|
||||
- name: Run Tests
|
||||
run: |
|
||||
source env/bin/activate
|
||||
pytest -m mvp --maxfail=5 tests/
|
||||
|
||||
|
|
Reference in New Issue