Skip to content

Commit b51f758

Browse files
authored
disable qgis testing for now
1 parent 7bf312d commit b51f758

File tree

1 file changed

+52
-52
lines changed

1 file changed

+52
-52
lines changed

.github/workflows/tester.yml

Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -45,55 +45,55 @@ jobs:
4545
- name: Run Unit tests
4646
run: pytest -p no:qgis tests/unit/
4747

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

Comments
 (0)