File tree Expand file tree Collapse file tree 5 files changed +16
-5
lines changed
Expand file tree Collapse file tree 5 files changed +16
-5
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3- docker-compose up -d --build
3+ docker-compose up -d --force-recreate
44echo ' Wait 10 seconds'
55sleep 10
66echo ' Installation of the plugin'
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1+ import sys
2+ import os
3+ sys .path .append (os .path .dirname (__file__ ))
4+
5+ from DeepLearningTools import *
6+ from tests import *
You can’t perform that action at this time.
0 commit comments