Skip to content

Commit

Permalink
Add CircleCI config (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
phanikumv authored Oct 11, 2023
1 parent dc42254 commit 9ff7405
Show file tree
Hide file tree
Showing 5 changed files with 100 additions and 1 deletion.
47 changes: 47 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Use the latest 2.1 version of CircleCI pipeline process engine.
# See: https://circleci.com/docs/configuration-reference
version: 2.1

all_branches_and_version_tag: &all_branches_and_version_tag
filters:
tags:
only: /^\d+[.\d]+.*/

executors:
docker-executor:
parameters:
python_version:
type: string
default: "3.10"

This comment has been minimized.

Copy link
@pgagnon

pgagnon Oct 12, 2023

Member

Tests should be run against python 3.11 at this time.

docker:
- image: cimg/python:<<parameters.python_version>>

jobs:
test:
parameters:
python_version:
description: "Python Version"
type: string
description: Test Python-<<parameters.python_version>>
executor:
name: docker-executor
python_version: "<<parameters.python_version>>"
parallelism: 4
steps:
- checkout
- run:
name: Install Dependencies
command: cd api && poetry install --no-root && rm -rf $POETRY_CACHE_DIR
- run:
name: Run tests
command: cd api && poetry run pytest ../tests

workflows:
tests:
jobs:
- test:
name: test-python<< matrix.python_version >>
matrix:
parameters:
python_version: [ "3.11" ]
<<: *all_branches_and_version_tag
48 changes: 47 additions & 1 deletion api/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions api/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ pydantic = "^2.3.0"
gunicorn = "^21.2.0"
uvicorn = "^0.23.2"

[tool.poetry.group.dev.dependencies]
pytest = "^7.4.2"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
1 change: 1 addition & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

2 changes: 2 additions & 0 deletions tests/test_nothing.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def test_nothing():
assert 0 == 0

0 comments on commit 9ff7405

Please sign in to comment.