Skip to content

Commit

Permalink
move all testing to a single workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ADBond committed Dec 23, 2024
1 parent dff1f8e commit 460d1ce
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 78 deletions.
37 changes: 0 additions & 37 deletions .github/workflows/test-chdb.yaml

This file was deleted.

18 changes: 14 additions & 4 deletions .github/workflows/test-clickhouse.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run tests - Clickhouse
name: Run tests
on:
pull_request:
branches:
Expand All @@ -24,7 +24,8 @@ jobs:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
name: Run tests with Python ${{ matrix.python-version }}
test-set: ["core", "chdb_no_core", "clickhouse_no_core"]
name: Run ${{ matrix.test-set }} tests with Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v4

Expand All @@ -41,5 +42,14 @@ jobs:
- name: Install dependencies
run: uv sync -p ${{ matrix.python-version }}

- name: Run chdb tests
run: uv run pytest -vm clickhouse_no_core tests/
- name: Run tests
run: |
uv run pytest -vm ${{ matrix.test-set }} --cov=splinkclickhouse --cov-branch tests
mv .coverage .coverage_${{ matrix.test-set }}
- uses: actions/upload-artifact@v4
with:
name: coverage_${{ matrix.test-set }}
path: .coverage_${{ matrix.test-set }}
if-no-files-found: error

37 changes: 0 additions & 37 deletions .github/workflows/test-core.yaml

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ __pycache__
dist/
*.egg-info

.coverage

tmp*

*.html
Expand Down

0 comments on commit 460d1ce

Please sign in to comment.