Skip to content

Commit

Permalink
Get QGIS to install correctly in GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
joshday authored Jun 17, 2024
1 parent 2df41f4 commit 9a784d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/Docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ jobs:
- uses: actions/checkout@v4
- name: Install QGIS
run: |
sudo apt-get install qgis
export QT_QPA_PLATFORM=offscreen
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
sudo apt-get install qgis qgis-plugin-grass
- uses: julia-actions/setup-julia@v2
with:
version: '1'
Expand Down
2 changes: 2 additions & 0 deletions src/QGIS.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ A `DataFrame` containing the metadata for all available QGIS algorithms.
df::DataFrame = DataFrame() # algorithm metadata

function __init__(x::String = "")
ENV["QT_QPA_PLATFORM"] = "offscreen"
if isfile(x)
@info "qgis_process found: `$x`"
global qgis_process = x
else
for path in [
Expand Down

1 comment on commit 9a784d6

@joshday
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.