-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathconfig.yml
65 lines (65 loc) · 1.58 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
jobs:
build:
machine:
image: ubuntu-2204:current
steps:
- checkout
- run:
command: docker-compose build picopt-build-builder
name: Install Build Dependencies
- run:
command: docker-compose up --exit-code-from picopt-lint picopt-lint
name: Lint
- run:
command: bin/create-output-dirs.sh
name: Create Output Dirs
- run:
command: docker-compose up --exit-code-from picopt-test picopt-test
name: Test
- store_test_results:
path: test-results/pytest
- store_artifacts:
path: test-results/coverage
- run:
command: docker-compose up --exit-code-from picopt-build picopt-build
name: Build
- persist_to_workspace:
paths:
- ./README.md
- ./bin
- ./dist
- ./pyproject.toml
root: .
deploy:
docker:
- image: cimg/python:3.11
steps:
- attach_workspace:
at: .
- run:
command: pip install poetry
name: Install poetry
- run:
command: bin/publish-pypi.sh
name: Publish Package to PyPi
version: 2.1
workflows:
main:
jobs:
- build:
filters:
branches:
only:
- develop
- pre-release
- main
- /.*-ci/
- deploy:
filters:
branches:
only:
- pre-release
- main
requires:
- build
version: 2.1