Skip to content

basic ci for pushes #12

basic ci for pushes

basic ci for pushes #12

Workflow file for this run

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'