ci: Update docker image to python 3.7, use generic python3
The python3 version in docker image may not be the same in the qemu test runner VM image, so a more generic 'python3' is used when creating the venv.
This commit is contained in:
parent
6540c25a9b
commit
fbdc68c3b6
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
# Author: Clayton Craft <clayton@craftyguy.net>
|
||||
|
||||
image: python:3.6-slim-stretch
|
||||
image: python:3.7-slim-stretch
|
||||
|
||||
cache:
|
||||
paths:
|
||||
|
@ -10,7 +10,7 @@ cache:
|
|||
before_script:
|
||||
- ./.gitlab/setup-pmos-environment.sh
|
||||
# venv created in CI_PROJECT_DIR for caching
|
||||
- "[[ ! -d venv ]] && virtualenv venv -p $(which python3.6)"
|
||||
- "[[ ! -d venv ]] && virtualenv venv -p $(which python3)"
|
||||
- "source venv/bin/activate"
|
||||
- "pip3 install pytest-cov python-coveralls pytest"
|
||||
- "python3 --version"
|
||||
|
|
Loading…
Reference in New Issue