Skip to content
Merged
Show file tree
Hide file tree
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
11 changes: 11 additions & 0 deletions .docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
services:
qgis:
user: ${UID}:${GID}
image: ${QGIS_IMAGE_TAG}
network_mode: host
container_name: DataPlotly-tests
environment:
QGIS_VERSION: ${QGIS_VERSION}
volumes:
- ..:/src
command: bash /src/.docker/run-tests.sh
17 changes: 17 additions & 0 deletions .docker/run-tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash
#
# Run test in docker QGIS image
#

set -e

cd /src

VENV=/src/.docker-venv-$QGIS_VERSION

python3 -m venv $VENV --system-site-package

echo "Installing requirements..."
$VENV/bin/pip install -q --no-cache -r requirements/tests.txt

cd tests && $VENV/bin/python -m pytest -v
77 changes: 0 additions & 77 deletions .github/workflows/test_plugin.yaml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Tests

on:
push:
branches:
- "*"
pull_request:
branches:
- master

jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
qgis_version: [
"3.34",
"3.40",
"3.44",
]
steps:
- name: Checkout
uses: actions/checkout@v6

- name: Running tests
run: make docker-test QGIS_VERSION=${{ matrix.qgis_version }}
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## Unreleased

- Migrate environment settings to uv
- Migrate linter to Ruff
- Add typechecker support
- Add test coverage

## 4.3.2 - 2025-10-10

- Minor bug fixing thanks to @soaubier Oslandia
Expand Down
6 changes: 5 additions & 1 deletion DataPlotly/core/plot_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,11 @@ def __init__(self, plot_type: str = 'scatter', properties: dict = None, layout:
'pie_hole': 0,
'fill': False,
'line_combo_threshold': 'Dot Line',
'line_dash_threshold': 'dash',
# Be consistent with the value of line_combo_threshold
# since the value of 'line_dash_threshold is set from
# the combo value
#'line_dash_threshold': 'dash',
'line_dash_threshold': 'dot',
'threshold_value': 1,
'threshold': False
}
Expand Down
6 changes: 0 additions & 6 deletions DataPlotly/test/__init__.py

This file was deleted.

Loading