-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
197 additions
and
412 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
name: on push | ||
on: [push] | ||
|
||
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 | ||
|
||
- run: make install-deps | ||
|
||
- name: "lint: black" | ||
run: make black | ||
- name: "lint: isort" | ||
run: make isort | ||
|
||
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: | ||
path: dist/*.whl | ||
if-no-files-found: error | ||
|
||
- name: upload sdist | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,81 +1,11 @@ | ||
# MacOS | ||
.DS_Store | ||
|
||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
wheels/ | ||
share/python-wheels/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
MANIFEST | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.nox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*.cover | ||
*.py,cover | ||
.hypothesis/ | ||
.pytest_cache/ | ||
cover/ | ||
|
||
# pyenv | ||
.python-version | ||
|
||
# poetry | ||
poetry.lock | ||
|
||
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm | ||
__pypackages__/ | ||
|
||
# Environments | ||
.env | ||
.venv | ||
env/ | ||
__pycache__ | ||
venv/ | ||
ENV/ | ||
env.bak/ | ||
venv.bak/ | ||
|
||
# mypy | ||
.mypy_cache/ | ||
.dmypy.json | ||
dmypy.json | ||
|
||
# pytype static type analyzer | ||
.pytype/ | ||
|
||
# Cython debug symbols | ||
cython_debug/ | ||
|
||
# JetBrains IDEs | ||
.idea | ||
tests/staging/ | ||
tests/reports/ | ||
.session_conf.sav |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.