-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path_config.jsonnet
31 lines (28 loc) · 960 Bytes
/
_config.jsonnet
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
local dsl = import '_dsl.libsonnet';
local jobs = dsl.jobs;
local pipeline = dsl.pipeline;
local steps = dsl.steps;
local workflows = dsl.workflows;
local orbs = dsl.orbs;
pipeline.new(
orbs=orbs.new({ python: 'circleci/[email protected]' }),
workflows=[
workflows.new(
'main',
jobs=[
workflows.job(
'build-and-test',
executor='python/default',
steps=[
steps.checkout(),
'python/load-cache',
steps.run('poetry install', name='Install dependencies'),
'python/save-cache',
steps.run('poetry run flake8 --ignore F821,W504 src tests', name='Linting'),
steps.run('poetry run pytest tests --cov=src --strict tests', name='Tests'),
],
),
],
),
],
)