Skip to content

feat: stats compute + summarize cardinality logic #2791

feat: stats compute + summarize cardinality logic

feat: stats compute + summarize cardinality logic #2791

Workflow file for this run

name: Test Python
on:
push:
branches:
- main
paths:
- 'python/**'
- 'thrift/**'
- '.github/workflows/test_python.yaml'
pull_request:
branches:
- main
paths:
- 'python/**'
- 'thrift/**'
- '.github/workflows/test_python.yaml'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
python_lint:
runs-on: ubuntu-latest
container:
image: ghcr.io/${{ github.repository }}-ci:latest
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
defaults:
run:
working-directory: ${{ github.workspace }}
steps:
- uses: actions/checkout@v4
- name: Configure Git
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
- name: Install uv
shell: bash
run: |
apt-get update && apt-get install -y curl
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Run Python lint and format check
shell: bash
run: |
export PATH="$HOME/.cargo/bin:$PATH"
./mill python.ruffCheck
python_tests:
runs-on: ubuntu-latest
container:
image: ghcr.io/${{ github.repository }}-ci:latest
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
defaults:
run:
working-directory: ${{ github.workspace }}
steps:
- uses: actions/checkout@v4
- name: Configure Git
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
- name: Install uv
shell: bash
run: |
apt-get update && apt-get install -y curl
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Run Python tests
shell: bash
run: |
export PATH="$HOME/.cargo/bin:$PATH"
./mill python.test
- name: Build coverage report
shell: bash
run: |
./mill python.test.coverageHtml --omit='**/test/**,**/out/**' --fail-under=65
- uses: actions/upload-artifact@v4
with:
name: htmlcov
path: out/python/test/coverageHtml.dest/htmlcov