From c10ebc3a0567369a3e0ce12787978b4fe9a4d173 Mon Sep 17 00:00:00 2001 From: Santiago Lamora Date: Tue, 21 Jul 2020 13:02:29 +0200 Subject: [PATCH] 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 https://github.com/actions/virtual-environments/commit/487c88b726392dda3077c6938c688a9601486763 --- .github/workflows/flask.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/flask.yml b/.github/workflows/flask.yml index ef4b0810..615efabf 100644 --- a/.github/workflows/flask.yml +++ b/.github/workflows/flask.yml @@ -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/