Skip to content

Loading metadata after acquiring a lock. (#57) #240

Loading metadata after acquiring a lock. (#57)

Loading metadata after acquiring a lock. (#57) #240

Workflow file for this run

name: main
on:
push: { branches: [main] }
pull_request: { branches: [main] }
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.run_number }}
cancel-in-progress: true
env:
NO_VENV: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: pip
- name: "lint: isort"
run: make isort
- name: "lint: black"
run: make black
- name: "lint: codespell"
run: make codespell
- name: "lint: ruff"
run: make ruff
- name: "lint: pylint"
run: make pylint
- name: "lint: mypy"
run: make mypy
- name: "lint: bandit"
run: make bandit
test:
needs: lint
strategy:
fail-fast: false
matrix:
target:
- python: "3.6"
ubuntu: "20.04"
- python: "3.10"
ubuntu: "latest"
clickhouse:
- "21.8.15.7"
- "22.3.20.29"
- "22.8.21.38"
- "23.3.11.5"
- "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 }}
- name: run unit tests
run: make test-unit
- name: run integration tests
run: CLICKHOUSE_VERSION=${{ matrix.clickhouse }} make test-integration
- uses: actions/upload-artifact@v3
if: ${{ failure() }}
with:
name: integration-test-logs-py${{ matrix.target.python }}-clickhouse-${{ matrix.clickhouse }}
path: staging/logs/
if-no-files-found: ignore