-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
60 lines (56 loc) · 1.36 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
version: 2.1
orbs:
python: circleci/python@2.1.1
jobs:
ruff:
resource_class: small
parameters:
python-version:
type: string
docker:
- image: cimg/python:<< parameters.python-version >>
steps:
- checkout
- run:
name: Install Ruff
command: pip install ruff
- run:
name: Run Ruff
command: ruff check .
build-and-test:
resource_class: medium
parallelism: 2
parameters:
python-version:
type: string
docker:
- image: cimg/python:<< parameters.python-version >>
steps:
- checkout
- run:
name: Set Up Virtual Environment
command: |
curl https://sh.rustup.rs -sSf | sh -s -- -y
. "$HOME/.cargo/env"
python -m venv .venv
. .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install '.[dev]'
- run:
name: Run Tests
command: |
. .venv/bin/activate
pytest tests/
- store_test_results:
path: test-results
- store_artifacts:
path: test-results
workflows:
test-and-lint:
jobs:
- ruff:
python-version: "3.9.13"
- build-and-test:
matrix:
parameters:
python-version: ["3.9", "3.10", "3.11", "3.12"]