Skip to content

Commit 6c8afaf

Browse files
authored
Update test_plugin.yml
chore: change test workflow
1 parent c67df84 commit 6c8afaf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/test_plugin.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ on:
2020
env:
2121
# plugin name/directory where the code for the plugin is stored
2222
PLUGIN_NAME: geovita_processing_plugin
23-
# python notation to test running inside plugin
24-
TESTS_RUN_FUNCTION: geovita_processing_plugin.test_suite.test_package
23+
# TESTS_RUN_FUNCTION er ikke lenger nødvendig med pytest
2524
# Docker settings
2625
DOCKER_IMAGE: qgis/qgis
2726

@@ -64,8 +63,9 @@ jobs:
6463
6564
- name: Docker run plugin tests
6665
run: |
67-
# ENDRING HER: Bruker full sti til qgis_testrunner.sh
68-
docker exec qgis-testing-environment sh -c "xvfb-run /usr/bin/qgis_testrunner.sh $TESTS_RUN_FUNCTION"
66+
# ENDRING HER: Kjører pytest direkte.
67+
# Vi bytter katalog til /tests_directory først, slik at pytest finner testfilene.
68+
docker exec qgis-testing-environment sh -c "cd /tests_directory && xvfb-run pytest"
6969
7070
Check-code-quality:
7171
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)