Skip to content

Commit

Permalink
Support of multiple Python versions in integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Burmak committed Aug 7, 2023
1 parent 617a24a commit cf11773
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 23 deletions.
47 changes: 28 additions & 19 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ env:

jobs:
lint:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
Expand All @@ -34,32 +34,41 @@ jobs:
run: make bandit

test:
name: test (Python ${{ matrix.target.python }}, ClickHouse ${{ matrix.clickhouse }})
name: test (Python ${{ matrix.python }}, ClickHouse ${{ matrix.clickhouse }})
needs: lint
strategy:
fail-fast: false
matrix:
target:
- python: "3.6"
ubuntu: "20.04"
- python: "3.10"
ubuntu: "22.04"
- python: "3.11"
ubuntu: "latest"
clickhouse:
- "21.8.15.7"
- "22.3.20.29"
- "22.8.20.11"
- "23.3.8.21"
- "latest"
runs-on: ubuntu-${{ matrix.target.ubuntu }}
include:
- ubuntu: "18.04"
python: "3.6"
clickhouse: "latest"
- ubuntu: "20.04"
python: "3.8"
clickhouse: "latest"
- ubuntu: "22.04"
python: "3.10"
clickhouse: "21.8.15.7"
- ubuntu: "22.04"
python: "3.10"
clickhouse: "22.3.20.29"
- ubuntu: "22.04"
python: "3.10"
clickhouse: "22.8.20.11"
- ubuntu: "22.04"
python: "3.10"
clickhouse: "23.3.8.21"
- ubuntu: "22.04"
python: "3.10"
clickhouse: "latest"
runs-on: ubuntu-${{ matrix.ubuntu }}
steps:
- uses: actions/checkout@v3
- name: set up python ${{ matrix.target.python }}
- name: set up python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.target.python }}
python-version: ${{ matrix.python }}
- name: run unit tests
run: make test-unit
- name: run integration tests
run: CLICKHOUSE_VERSION=${{ matrix.clickhouse }} make test-integration
run: UBUNTU_VERSION=${{ matrix.ubuntu }} CLICKHOUSE_VERSION=${{ matrix.clickhouse }} make test-integration
9 changes: 5 additions & 4 deletions images/clickhouse/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
FROM ubuntu:bionic
ARG UBUNTU_VERSION=22.04
ARG CLICKHOUSE_VERSION=latest

ENV TZ=Europe/Moscow
ENV CH_TMP_DIR /var/tmp/ch-backup
FROM ubuntu:$UBUNTU_VERSION

ARG CLICKHOUSE_VERSION=latest
ENV TZ=Europe/Moscow
ENV CH_TMP_DIR=/var/tmp/ch-backup

RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \
apt-get update -qq && \
Expand Down

0 comments on commit cf11773

Please sign in to comment.