ci: run tests for py 3.6 - 3.9

This commit is contained in:
izzy lyseggen
2021-01-20 16:57:35 +00:00
parent 110f10623e
commit 64df2f241c
+17 -10
View File
@@ -2,27 +2,34 @@ version: 2.1
orbs:
python: circleci/python@1.3.2
jobs:
build:
executor: python/default
executor:
name: python/default
tag: << parameters.tag >>
parameters:
tag:
default: "3.8"
type: string
steps:
- checkout
- run: python -m pip install --upgrade pip
- python/install-packages:
pkg-manager: pip
- run: python --version
- run:
command: python -m pip install --upgrade pip
name: upgrade pip
- python/install-packages:
pip-dependency-file: requirements.txt
pkg-manager: pip
- run:
command: |
pytest --version
name: Test
- run: pytest --version
workflows:
main:
jobs:
- build
- python/test:
matrix:
parameters:
version: ["3.6", "3.7", "3.8", "3.9"]
pkg-manager: pip
test-tool: pytest