diff --git a/.github/workflows/test-ci.yml b/.github/workflows/test-ci.yml index 708dd3c..0c71231 100644 --- a/.github/workflows/test-ci.yml +++ b/.github/workflows/test-ci.yml @@ -1,10 +1,10 @@ name: Test CI -on: +on: push: - branches: [ main ] + branches: [main] pull_request: - branches: [ main ] + branches: [main] jobs: test: @@ -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 \ No newline at end of file + - name: Upload coverage report + if: success() + uses: actions/upload-artifact@v4 + with: + name: coverage-report + path: coverage.xml