-
Notifications
You must be signed in to change notification settings - Fork 7
80 lines (69 loc) · 2.16 KB
/
workflow.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: on push
on:
push: { branches: [main] }
pull_request: { branches: [main] }
jobs:
lint: # fail-fast on linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: set up python ${{ matrix.target.python }}
uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: pip
- {name: "lint: prepare", run: make install-deps }
- {name: "lint: black", run: make black }
- {name: "lint: isort", run: make isort }
# Temporarily disabled due to bugs in typing in click library
# https://github.com/pallets/click/pull/2559
# https://github.com/python/mypy/issues/13250
# https://github.com/python/mypy/issues/13449
#- {name: "lint: mypy", run: make mypy }
build:
strategy:
matrix:
target:
- {python: "3.6.15", ubuntu: "20.04"}
- {python: "3.10.12", ubuntu: "latest"}
clickhouse:
- "21.8.15.7"
- "22.3.20.29"
- "22.8.19.10"
- "23.3.4.17"
- "23.4.4.16"
- "23.5.3.24"
- "latest"
runs-on: ubuntu-${{ matrix.target.ubuntu }}
steps:
- uses: actions/checkout@v3
- name: set up python ${{ matrix.target.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.target.python }}
cache: pip
- run: make install-deps
- run: make build-python-package
- name: upload wheel
uses: actions/upload-artifact@v3
with:
name: chtools-py${{ matrix.target.python }}.whl
path: dist/*.whl
if-no-files-found: error
- name: upload sdist
uses: actions/upload-artifact@v3
with:
name: chtools-py${{ matrix.target.python }}.tar.gz
path: dist/*.tar.gz
if-no-files-found: error
- name: run unit tests
run: make test-unit
- name: prepare docker images for integration tests
run: CLICKHOUSE_VERSION=${{ matrix.clickhouse }} make test-integration-prepare
- name: run integration tests
run: make test-integration
- name: publish test report
uses: mikepenz/action-junit-report@v3
if: always()
with:
report_paths: 'tests/reports/*.xml'