Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 29 additions & 28 deletions .github/workflows/test-ci.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Test CI

on:
on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]

jobs:
test:
Expand All @@ -16,32 +16,33 @@ jobs:
python-version: ["3.11"]

steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install project and tools
run: |
python -m pip install --upgrade pip
pip install .
pip install coverage
- name: Install project and tools
run: |
python -m pip install --upgrade pip
pip install .
python -c "import duckdb; duckdb.install_extension('spatial')"
pip install coverage

- name: Run unittests with coverage
env:
PYTHONWARNINGS: ignore::ResourceWarning
PYTHONPATH: src
run: |
coverage run -m unittest discover -s test -p "test_*.py"
coverage report -m --omit="test/*"
coverage xml
- name: Run unittests with coverage
env:
PYTHONWARNINGS: ignore::ResourceWarning
PYTHONPATH: src
run: |
coverage run -m unittest discover -s test -p "test_*.py"
coverage report -m --omit="test/*"
coverage xml

- name: Upload coverage report
if: success()
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: coverage.xml
- name: Upload coverage report
if: success()
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: coverage.xml
Loading