Upgrade to python 3.8 (#564)
This commit is contained in:
Родитель
aa1843e697
Коммит
48cfe3fff7
|
@ -2,7 +2,7 @@ version: 2
|
|||
jobs:
|
||||
build:
|
||||
docker:
|
||||
- image: python:3.7
|
||||
- image: python:3.8
|
||||
steps:
|
||||
- checkout
|
||||
- restore_cache:
|
||||
|
@ -15,7 +15,7 @@ jobs:
|
|||
- run:
|
||||
name: Build
|
||||
command: |
|
||||
python3.7 -m venv venv/
|
||||
python3.8 -m venv venv/
|
||||
venv/bin/pip install --upgrade -r requirements.txt
|
||||
- run:
|
||||
name: PyTest with linters
|
||||
|
@ -26,7 +26,7 @@ jobs:
|
|||
key: python-packages-v1-{{ .Branch }}-{{ checksum "requirements.txt" }}-{{ checksum "constraints.txt" }}
|
||||
verify-generated-sql:
|
||||
docker:
|
||||
- image: circleci/python:3.7
|
||||
- image: circleci/python:3.8
|
||||
steps:
|
||||
- checkout
|
||||
- setup_remote_docker
|
||||
|
@ -34,7 +34,7 @@ jobs:
|
|||
name: Verify that all of generated SQL is committed
|
||||
command: |
|
||||
sudo apt-get update
|
||||
python3.7 -m venv venv/
|
||||
python3.8 -m venv venv/
|
||||
venv/bin/pip install --upgrade -r requirements.txt
|
||||
rm -rf sql/
|
||||
venv/bin/python script/generate_sql
|
||||
|
@ -43,7 +43,7 @@ jobs:
|
|||
test `git ls-files --other --modified -x sql/* | wc -l` = 0
|
||||
dry-run-sql:
|
||||
docker:
|
||||
- image: python:3.7
|
||||
- image: python:3.8
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
ARG PYTHON_VERSION=3.7
|
||||
ARG PYTHON_VERSION=3.8
|
||||
|
||||
# build typed-ast in separate stage because it requires gcc and libc-dev
|
||||
FROM python:${PYTHON_VERSION}-slim
|
||||
|
|
|
@ -5,7 +5,7 @@ This repository uses `pytest`:
|
|||
|
||||
```
|
||||
# create a venv
|
||||
python3.7 -m venv venv/
|
||||
python3.8 -m venv venv/
|
||||
|
||||
# install requirements
|
||||
venv/bin/pip install -r requirements.txt
|
||||
|
|
Загрузка…
Ссылка в новой задаче