Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
myrrc committed Jul 7, 2023
1 parent f4d9f3e commit 9169e32
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 9169e32

Please sign in to comment.