Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 8 additions & 16 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,21 @@
version: 2.1

executors:
machine_executor_amd64:
machine:
image: ubuntu-2204:2022.04.2
environment:
architecture: "amd64"
platform: "linux/amd64"
machine_executor_amd64:
machine:
image: ubuntu-2204:2022.04.2
environment:
architecture: "amd64"
platform: "linux/amd64"

jobs:
lint:
docker:
- image: python:3.8.18-slim-bullseye
- image: cimg/python:3.8
steps:
- checkout
- run:
name: Install deps
command: apt update && apt upgrade && apt install -y curl gcc libc-dev libffi-dev
- run:
name: Install poetry
command: "curl -sSL https://install.python-poetry.org | python3 - && \
echo 'export PATH=/root/.local/bin:${PATH}' >> \"$BASH_ENV\" && \
source \"$BASH_ENV\""
- run:
name: Install project dependencies
name: Project deps
command: poetry install --no-ansi
- run:
name: Lint
Expand Down
6 changes: 2 additions & 4 deletions docker-compose-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ services:
- network

test:
image: python:3.8-alpine3.18
command: sh -c "cd app/ && apk add curl gcc libc-dev libffi-dev && \
curl -sSL https://install.python-poetry.org | python3 - && \
export PATH=\"/root/.local/bin:$PATH\" && \
image: cimg/python:3.8
command: sh -c "cd /app && sudo apt update && sudo apt install curl gcc libc-dev libffi-dev && \
poetry config virtualenvs.in-project false && \
poetry install --no-ansi && \
poetry run pytest -s"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ pytest = "^7.4.2"
pytest-asyncio = "^0.21.1"

[build-system]
requires = ["poetry-core"]
requires = ["poetry-core^1.6.0"]
build-backend = "poetry.core.masonry.api"