From 9169e327802bfd1cd6da6b3164455ce01abb2f48 Mon Sep 17 00:00:00 2001 From: Mike Kot Date: Fri, 7 Jul 2023 18:50:23 +0300 Subject: [PATCH] fix --- .github/workflows/workflow.yml | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 8fafe31b..85d371b3 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -3,8 +3,17 @@ on: push: { branches: [main] } pull_request: { branches: [main] } -env: - CLICKHOUSE_VERSIONS: "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" + workflow_call: + inputs: + clickhouse: + default: + - "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" jobs: lint: @@ -18,11 +27,22 @@ jobs: - {name: "lint: isort", run: make isort } - {name: "lint: mypy", run: make mypy } + test: + env: + default: bar + runs-on: ubuntu-latest + steps: + - run: echo ${{ toJson(env) }} + push_to_dockerhub: runs-on: ubuntu-latest needs: lint # if: ${{ github.event_name == 'push' }} + env: + CLICKHOUSE_VERSIONS: ${{ join(inputs.clickhouse) }} steps: + - run: echo ${{ inputs.clickhouse }} + - run: echo $CLICKHOUSE_VERSIONS - name: login to dockerhub uses: docker/login-action@v2 with: @@ -41,7 +61,7 @@ jobs: target: - {python: "3.6.15", ubuntu: "20.04"} - {python: "3.10.12", ubuntu: "latest"} - clickhouse: fromJson("[ $CLICKHOUSE_VERSIONS ]") + clickhouse: ${{ inputs.clickhouse }} runs-on: ubuntu-${{ matrix.target.ubuntu }} steps: - uses: actions/checkout@v3