Skip to content

Commit 730ea0d

Browse files
CI: Use xvfb for headless pyvista runs
1 parent 4736b58 commit 730ea0d

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

.github/workflows/main.yml

+18-5
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ jobs:
1313
name: Building pgcore & bindings
1414
runs-on: self-hosted
1515
steps:
16-
- uses: actions/checkout@v4
16+
- name: Clean-up
17+
run: rm -rf ~/.cache/pygimli
18+
- name: Getting pyGIMLi sources
19+
uses: actions/checkout@v4
1720
with:
1821
fetch-depth: 0 # checks out all branches and tags
1922
path: source
@@ -48,12 +51,14 @@ jobs:
4851
env:
4952
DISPLAY: ":99.0"
5053
PYVISTA_OFF_SCREEN: True
54+
OPENBLAS_CORETYPE: "ARMV8" # current bug in OpenBlas core detection
5155
steps:
52-
- name: Set up headless display
53-
uses: pyvista/setup-headless-display-action@v2
56+
- name: Clean gallery
57+
working-directory: build
58+
run: make clean-gallery
5459
- name: Running sphinx
5560
working-directory: build
56-
run: make doc
61+
run: xvfb-run make doc # xvfb is necessary for headless display of pyvista plots
5762
merging:
5863
name: Merging dev into master
5964
runs-on: self-hosted
@@ -66,6 +71,14 @@ jobs:
6671
type: now
6772
target_branch: master
6873
github_token: ${{ secrets.GITHUB_TOKEN }}
69-
74+
upload-html:
75+
name: Upload HTML to dev.pygimli.org
76+
runs-on: self-hosted
77+
needs: docs
78+
if: github.ref == 'refs/heads/dev' # Only merge from dev
79+
steps:
80+
- name: Merge into master
81+
working-directory: build
82+
run: rsync -avP --delete doc/html ~/dev.pygimli.org
7083

7184

0 commit comments

Comments
 (0)