Skip to content

Commit 7f06931

Browse files
committed
trying again
1 parent 181650d commit 7f06931

File tree

5 files changed

+16
-5
lines changed

5 files changed

+16
-5
lines changed

.docker/docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ services:
66
container_name: deeplearningtools-testing-env
77
volumes:
88
# - /tmp/.X11-unix:/tmp/.X11-unix
9-
- ../DeepLearningTools:/tests_directory/DeepLearningTools
9+
- ../DeepLearningTools:/tests_directory
10+
- ..:/github_repo
1011
environment:
1112
# - DISPLAY=unix$DISPLAY
1213
- DISPLAY=:99

.docker/exec.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/usr/bin/env bash
22

3-
docker exec -t deeplearningtools-testing-env sh -c "cd /tests_directory && qgis_testrunner.sh tests.test_image_processing"
3+
docker exec -t deeplearningtools-testing-env sh -c "cd /github_repo && qgis_testrunner.sh tests.test_image_processing"

.docker/start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
docker-compose up -d --build
3+
docker-compose up -d --force-recreate
44
echo 'Wait 10 seconds'
55
sleep 10
66
echo 'Installation of the plugin'

.github/workflows/test_plugin_on_qgis.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,9 @@ jobs:
2020
- name: Caches the docker container
2121
uses: satackey/action-docker-layer-caching@v0.0.11
2222
continue-on-error: true
23-
- name: Run tests
24-
run: ./start.sh && ./exec.sh
23+
- name: Start the environment
24+
run: ./start.sh
25+
- name: Tests
26+
run: ./exec.sh
27+
- name: Stop the environment
28+
run: docker-compose down

__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import sys
2+
import os
3+
sys.path.append(os.path.dirname(__file__))
4+
5+
from DeepLearningTools import *
6+
from tests import *

0 commit comments

Comments
 (0)