-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
37 lines (33 loc) · 996 Bytes
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
version: 2.1
orbs:
python: circleci/[email protected]
executors:
machine_executor_amd64:
machine:
image: ubuntu-2404:2024.05.1
environment:
architecture: "amd64"
platform: "linux/amd64"
# Define a job to be invoked later in a workflow.
# See: https://circleci.com/docs/jobs-steps/#jobs-overview & https://circleci.com/docs/configuration-reference/#jobs
jobs:
build-and-test:
executor: machine_executor_amd64
resource_class: medium
steps:
- checkout
- run:
name: install development & testing dependencies
command: pip install poetry mypy tox alembic ruff
- python/install-packages:
pkg-manager: poetry
- run:
name: Run mypy
command: mypy --disallow-untyped-calls --disallow-untyped-defs --disallow-incomplete-defs --ignore-missing-imports src tests
- run:
name: Run tests
command: tox -e lint,py312
workflows:
sample:
jobs:
- build-and-test