Skip to content

Commit

Permalink
Update config file and comment out py3.9 jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
Heidi Tong committed Dec 15, 2020
1 parent 596af52 commit 47802d9
Showing 1 changed file with 21 additions and 25 deletions.
46 changes: 21 additions & 25 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@ jobs:

test-py39: &full-test-template
docker:
- image: circleci/python:3.9-buster
- image: circleci/python:3.9

working_directory: ~/repo/

steps:
- checkout

- restore_cache:
- restore_cache: &restore-cache-template
key: v1-dependencies-{{ checksum "requirements.txt" }}-{{ .Environment.CIRCLE_JOB }}
- run: python -m virtualenv env
- run: &install-dependences-template
name: install requirements
command: |
env/bin/pip install -r ./requirements.txt
env/bin/pip install coverage
- save_cache:
- save_cache: &save-cache-template
key: v1-dependencies-{{ checksum "requirements.txt" }}-{{ .Environment.CIRCLE_JOB }}
paths:
- env
Expand All @@ -35,30 +35,30 @@ jobs:
test-py38:
<<: *full-test-template
docker:
- image: circleci/python:3.8-buster
- image: circleci/python:3.8

test-py37:
<<: *full-test-template
docker:
- image: circleci/python:3.7-stretch
- image: circleci/python:3.7

test-py36:
<<: *full-test-template
docker:
- image: circleci/python:3.6-jessie
- image: circleci/python:3.6

test-py35:
<<: *full-test-template
docker:
- image: circleci/python:3.5-jessie
- image: circleci/python:3.5

#
# macOS
#

test-osx-py39: &osx-tests-template
macos:
xcode: "11.2.1"
xcode: "12.2.0"
environment:
PYTHON: 3.9.0
HOMEBREW_NO_AUTO_UPDATE: 1
Expand All @@ -73,10 +73,10 @@ jobs:
# Install desired python version
- restore_cache:
keys:
- pyenv-{{ .Environment.CIRCLE_JOB }}-xcode-11.2.1
- pyenv-{{ .Environment.CIRCLE_JOB }}-xcode-12.2.0
- run: pyenv install $PYTHON -s
- save_cache:
key: pyenv-{{ .Environment.CIRCLE_JOB }}-xcode-11.2.1
key: pyenv-{{ .Environment.CIRCLE_JOB }}-xcode-12.2.0
paths:
- ~/.pyenv

Expand All @@ -90,13 +90,11 @@ jobs:
python -m virtualenv env
# Restore cache
- restore_cache:
key: v1-dependencies-{{ checksum "requirements.txt" }}-{{ .Environment.CIRCLE_JOB }}
- restore_cache: *restore-cache-template

- run: *install-dependences-template
- save_cache:
key: v1-dependencies-{{ checksum "requirements.txt" }}-{{ .Environment.CIRCLE_JOB }}
paths:
- env

- save_cache: *save-cache-template

- run: env/bin/coverage run -m unittest discover

Expand Down Expand Up @@ -160,19 +158,17 @@ jobs:
.\python\tools\python.exe -m virtualenv env
# Install requirements
- restore_cache:
key: v1-dependencies-{{ checksum "requirements.txt" }}-{{ .Environment.CIRCLE_JOB }}
- restore_cache: *restore-cache-template

- run: &win-install-dependencies-template
name: install dependencies
command: |
env\Scripts\activate.ps1
python --version
pip install -r requirements.txt
pip install coverage
- save_cache:
key: v1-dependencies-{{ checksum "requirements.txt" }}-{{ .Environment.CIRCLE_JOB }}
paths:
- env
- save_cache: *save-cache-template

# Run tests
- run: &win-run-unittests-template
Expand Down Expand Up @@ -205,17 +201,17 @@ workflows:
version: 2.1
tests:
jobs:
- test-py39
# - test-py39
- test-py38
- test-py37
- test-py36
- test-py35
- test-osx-py39
# - test-osx-py39
- test-osx-py38
- test-osx-py37
- test-osx-py36
- test-osx-py35
- test-win-py39
# - test-win-py39
- test-win-py38
- test-win-py37
- test-win-py36
Expand Down

0 comments on commit 47802d9

Please sign in to comment.