From 19f89e0efe5d711e02413aef779014c601e37963 Mon Sep 17 00:00:00 2001 From: Oliver Margetts Date: Sat, 14 Aug 2021 11:29:53 +0000 Subject: [PATCH] Test with CH 21.3 and 20.8 --- .github/workflows/python-package.yml | 34 ++++++++++++++++++++++++---- 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 45fef0b..bd19f72 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -30,17 +30,16 @@ jobs: poetry install - name: Lint with flake8 run: | - poetry run flake8 clickhouse_orm/ - cd tests && poetry run flake8 + poetry run flake8 - name: Check formatting with black run: | - poetry run black --line-length 120 --check clickhouse_orm/ tests/ + poetry run black --check . test: runs-on: ubuntu-latest services: clickhouse: - image: yandex/clickhouse-server:20.8 + image: yandex/clickhouse-server:21.3 ports: - 8123:8123 strategy: @@ -61,3 +60,30 @@ jobs: - name: Test with pytest run: | poetry run pytest + + test_compat: + # Tests compatibility with an older LTS release of clickhouse + runs-on: ubuntu-latest + services: + clickhouse: + image: yandex/clickhouse-server:20.8 + ports: + - 8123:8123 + strategy: + fail-fast: false + matrix: + python-version: [3.9] + + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install poetry + poetry install + - name: Test with pytest + run: | + poetry run pytest