Skip to content

Commit 6a4ddc1

Browse files
authored
Move style checks and unit tests to CircleCI (#22)
* Move style checks and unit tests to CircleCI * Add OpenJDK installation * Configure resources for all jobs
1 parent a8b3169 commit 6a4ddc1

2 files changed

Lines changed: 36 additions & 34 deletions

File tree

.circleci/config.yml

Lines changed: 36 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,35 @@ orbs:
44
python: circleci/python@1.5.0
55

66
jobs:
7-
core-integration-tests:
7+
style_and_unit_tests:
8+
parameters:
9+
python_version:
10+
type: string
11+
docker:
12+
- image: cimg/python:<< parameters.python_version >>
13+
resource_class: small
14+
steps:
15+
- checkout
16+
- run:
17+
name: Install OpenJDK
18+
command: sudo apt-get update && sudo apt-get install default-jdk
19+
- run:
20+
name: Install dependencies
21+
command: make install-dev
22+
- run:
23+
name: Run liners and code style checks
24+
command: make style
25+
- run:
26+
name: Run unit tests
27+
command: make unit-test
28+
- run:
29+
name: Run doc tests
30+
command: make doc-test
31+
32+
core_integration_tests:
833
docker:
934
- image: cimg/python:3.7
35+
resource_class: small
1036
steps:
1137
- checkout
1238
- run:
@@ -16,10 +42,11 @@ jobs:
1642
name: Run Core integration tests
1743
command: make core-it-test
1844

19-
airflow-integration-tests:
45+
airflow_integration_tests:
2046
machine:
2147
image: ubuntu-2204:2022.10.2
2248
docker_layer_caching: true
49+
resource_class: large
2350
steps:
2451
- checkout
2552
- run:
@@ -39,7 +66,11 @@ jobs:
3966
path: /tmp/airflow_logs
4067

4168
workflows:
42-
main-pr-integration-tests:
69+
main_pr:
4370
jobs:
44-
- core-integration-tests
45-
- airflow-integration-tests
71+
- style_and_unit_tests:
72+
matrix:
73+
parameters:
74+
python_version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
75+
- core_integration_tests
76+
- airflow_integration_tests

.github/workflows/main.yaml

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)