@@ -45,55 +45,55 @@ jobs:
45
45
- name : Run Unit tests
46
46
run : pytest -p no:qgis tests/unit/
47
47
48
- test-qgis :
49
- runs-on : ubuntu-latest
50
-
51
- container :
52
- image : qgis/qgis:3.4
53
- env :
54
- CI : true
55
- DISPLAY : " :1"
56
- MUTE_LOGS : true
57
- NO_MODALS : 1
58
- PYTHONPATH : " /usr/share/qgis/python/plugins:/usr/share/qgis/python:."
59
- QT_QPA_PLATFORM : " offscreen"
60
- WITH_PYTHON_PEP : false
61
- # be careful, things have changed since QGIS 3.40. So if you are using this setup
62
- # with a QGIS version older than 3.40, you may need to change the way you set up the container
63
- volumes :
64
- # Mount the X11 socket to allow GUI applications to run
65
- - /tmp/.X11-unix:/tmp/.X11-unix
66
- # Mount the workspace directory to the container
67
- - ${{ github.workspace }}:/home/root/
68
-
69
- steps :
70
- - name : Get source code
71
- uses : actions/checkout@v4
72
-
73
- - name : Print QGIS version
74
- run : qgis --version
75
-
76
- # Uncomment if you need to run a script to set up the plugin in QGIS docker image < 3.40
77
- # - name: Setup plugin
78
- # run: qgis_setup.sh ${{ env.PROJECT_FOLDER }}
79
-
80
- - name : Install Python requirements
81
- run : |
82
- apt update && apt install -y python3-pip python3-venv pipx
83
- # Create a virtual environment
84
- cd /home/root/
85
- pipx run qgis-venv-creator --venv-name ".venv"
86
- # Activate the virtual environment
87
- . .venv/bin/activate
88
- # Install the requirements
89
- python3 -m pip install -U -r requirements/testing.txt
90
-
91
- - name : Run Unit tests
92
- run : |
93
- cd /home/root/
94
- # Activate the virtual environment
95
- . .venv/bin/activate
96
- # Run the tests
97
- # xvfb-run is used to run the tests in a virtual framebuffer
98
- # This is necessary because QGIS requires a display to run
99
- xvfb-run python3 -m pytest tests/qgis --junitxml=junit/test-results-qgis.xml --cov-report=xml:coverage-reports/coverage-qgis.xml
48
+ # test-qgis:
49
+ # runs-on: ubuntu-latest
50
+
51
+ # container:
52
+ # image: qgis/qgis:3.4
53
+ # env:
54
+ # CI: true
55
+ # DISPLAY: ":1"
56
+ # MUTE_LOGS: true
57
+ # NO_MODALS: 1
58
+ # PYTHONPATH: "/usr/share/qgis/python/plugins:/usr/share/qgis/python:."
59
+ # QT_QPA_PLATFORM: "offscreen"
60
+ # WITH_PYTHON_PEP: false
61
+ # # be careful, things have changed since QGIS 3.40. So if you are using this setup
62
+ # # with a QGIS version older than 3.40, you may need to change the way you set up the container
63
+ # volumes:
64
+ # # Mount the X11 socket to allow GUI applications to run
65
+ # - /tmp/.X11-unix:/tmp/.X11-unix
66
+ # # Mount the workspace directory to the container
67
+ # - ${{ github.workspace }}:/home/root/
68
+
69
+ # steps:
70
+ # - name: Get source code
71
+ # uses: actions/checkout@v4
72
+
73
+ # - name: Print QGIS version
74
+ # run: qgis --version
75
+
76
+ # # Uncomment if you need to run a script to set up the plugin in QGIS docker image < 3.40
77
+ # # - name: Setup plugin
78
+ # # run: qgis_setup.sh ${{ env.PROJECT_FOLDER }}
79
+
80
+ # - name: Install Python requirements
81
+ # run: |
82
+ # apt update && apt install -y python3-pip python3-venv pipx
83
+ # # Create a virtual environment
84
+ # cd /home/root/
85
+ # pipx run qgis-venv-creator --venv-name ".venv"
86
+ # # Activate the virtual environment
87
+ # . .venv/bin/activate
88
+ # # Install the requirements
89
+ # python3 -m pip install -U -r requirements/testing.txt
90
+
91
+ # - name: Run Unit tests
92
+ # run: |
93
+ # cd /home/root/
94
+ # # Activate the virtual environment
95
+ # . .venv/bin/activate
96
+ # # Run the tests
97
+ # # xvfb-run is used to run the tests in a virtual framebuffer
98
+ # # This is necessary because QGIS requires a display to run
99
+ # xvfb-run python3 -m pytest tests/qgis --junitxml=junit/test-results-qgis.xml --cov-report=xml:coverage-reports/coverage-qgis.xml
0 commit comments