Skip to content
This repository has been archived by the owner on Jul 13, 2022. It is now read-only.

Commit

Permalink
Add 3 9 test runner (#11)
Browse files Browse the repository at this point in the history
* Add a test runner for 3.9 as well as 3.6

* Add a test runner for 3.9 as well as 3.6

* Version bumped to 0.12.0

* matrix

* add 3.7 and 3.8 test runs

Co-authored-by: ns-circle-ci <[email protected]>
Co-authored-by: Jonathan Drake <[email protected]>
  • Loading branch information
3 people authored Oct 1, 2021
1 parent 8d7643f commit c556398
Show file tree
Hide file tree
Showing 9 changed files with 108 additions and 7 deletions.
62 changes: 59 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ executors:
docker:
- image: cimg/python:3.6
resource_class: small
python-medium:
python-3_6-medium:
docker:
- environment:
DB_USER_NAME: postgres
Expand All @@ -229,12 +229,61 @@ executors:
- environment:
POSTGRES_PASSWORD: $CIRCLE_SHA1
POSTGRES_USER: postgres
image: circleci/postgres:11-alpine-ram
image: circleci/postgres:12-alpine-ram
resource_class: medium
python-3_7-medium:
docker:
- environment:
DB_USER_NAME: postgres
DB_USER_PASSWORD: $CIRCLE_SHA1
EXISTING_DB_NAME: circle_test
TEST_DB_NAME: test_db
image: cimg/python:3.7
- environment:
POSTGRES_PASSWORD: $CIRCLE_SHA1
POSTGRES_USER: postgres
image: circleci/postgres:12-alpine-ram
resource_class: medium
python-3_8-medium:
docker:
- environment:
DB_USER_NAME: postgres
DB_USER_PASSWORD: $CIRCLE_SHA1
EXISTING_DB_NAME: circle_test
TEST_DB_NAME: test_db
image: cimg/python:3.8
- environment:
POSTGRES_PASSWORD: $CIRCLE_SHA1
POSTGRES_USER: postgres
image: circleci/postgres:12-alpine-ram
resource_class: medium
python-3_9-medium:
docker:
- environment:
DB_USER_NAME: postgres
DB_USER_PASSWORD: $CIRCLE_SHA1
EXISTING_DB_NAME: circle_test
TEST_DB_NAME: test_db
image: cimg/python:3.9
- environment:
POSTGRES_PASSWORD: $CIRCLE_SHA1
POSTGRES_USER: postgres
image: circleci/postgres:12-alpine-ram
resource_class: medium
jobs:
build-test:
description: Test building with Poetry, Cruft, pre-commit, and run unit tests with pytest.
executor: python-medium
executor: python-<< parameters.python_version >>-medium
parameters:
python_version:
default: "3_9"
description: Python version to use as the executor
enum:
- "3_6"
- "3_7"
- "3_8"
- "3_9"
type: enum
steps:
- add_ssh_keys:
fingerprints:
Expand Down Expand Up @@ -304,4 +353,11 @@ workflows:
branches:
ignore:
- main
matrix:
parameters:
python_version:
- "3_6"
- "3_7"
- "3_8"
- "3_9"

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ docker:
TEST_DB_NAME: test_db
DB_USER_NAME: postgres
DB_USER_PASSWORD: $CIRCLE_SHA1
- image: circleci/postgres:11-alpine-ram
- image: circleci/postgres:12-alpine-ram
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: $CIRCLE_SHA1
Expand Down
12 changes: 12 additions & 0 deletions .circleci/executors/python-3_7-medium.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
docker:
- image: cimg/python:3.7
environment:
EXISTING_DB_NAME: circle_test
TEST_DB_NAME: test_db
DB_USER_NAME: postgres
DB_USER_PASSWORD: $CIRCLE_SHA1
- image: circleci/postgres:12-alpine-ram
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: $CIRCLE_SHA1
resource_class: medium
12 changes: 12 additions & 0 deletions .circleci/executors/python-3_8-medium.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
docker:
- image: cimg/python:3.8
environment:
EXISTING_DB_NAME: circle_test
TEST_DB_NAME: test_db
DB_USER_NAME: postgres
DB_USER_PASSWORD: $CIRCLE_SHA1
- image: circleci/postgres:12-alpine-ram
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: $CIRCLE_SHA1
resource_class: medium
12 changes: 12 additions & 0 deletions .circleci/executors/python-3_9-medium.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
docker:
- image: cimg/python:3.9
environment:
EXISTING_DB_NAME: circle_test
TEST_DB_NAME: test_db
DB_USER_NAME: postgres
DB_USER_PASSWORD: $CIRCLE_SHA1
- image: circleci/postgres:12-alpine-ram
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: $CIRCLE_SHA1
resource_class: medium
8 changes: 7 additions & 1 deletion .circleci/jobs/build-test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
description: Test building with Poetry, Cruft, pre-commit, and run unit tests with pytest.
executor: python-medium
parameters:
python_version:
description: Python version to use as the executor
default: "3_9"
type: enum
enum: ["3_6", "3_7", "3_8", "3_9"]
executor: python-<< parameters.python_version >>-medium
steps:
- add_ssh_keys:
fingerprints:
Expand Down
3 changes: 3 additions & 0 deletions .circleci/workflows/pull-request-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ jobs:
branches:
ignore:
- main
matrix:
parameters:
python_version: ["3_6", "3_7", "3_8", "3_9"]
2 changes: 1 addition & 1 deletion pynocular/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Lightweight ORM that lets you query your database using Pydantic models and asyncio"""

__version__ = "0.11.0"
__version__ = "0.12.0"

from pynocular.engines import DatabaseType, DBInfo
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pynocular"
version = "0.11.0"
version = "0.12.0"
description = "Lightweight ORM that lets you query your database using Pydantic models and asyncio"
authors = [
"RJ Santana <[email protected]>",
Expand Down

0 comments on commit c556398

Please sign in to comment.