Skip to content

Commit

Permalink
Update CI: virtual openGL
Browse files Browse the repository at this point in the history
  • Loading branch information
danlooo committed Jan 24, 2024
1 parent 248b513 commit e83160b
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 566 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,25 @@ jobs:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/cache@v1
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v2
with:
files: lcov.info
# Use virtual openGL for headless server
# see https://github.com/MakieOrg/Makie.jl/blob/8504b27c28c45a522467c7c57f6953c3a680fa6a/.github/workflows/glmakie.yaml#L45-L57
- run: sudo apt-get update && sudo apt-get install -y xorg-dev mesa-utils xvfb libgl1 freeglut3-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxext-dev
- name: Install Julia dependencies
shell: julia --project=. -e '{0}'
run: |
using Pkg;
# dev mono repo versions
pkg"dev DGGS"
- name: Run the tests
id: referencetests
continue-on-error: true
run: >
DISPLAY=:0 xvfb-run -s '-screen 0 1024x768x24' julia --color=yes --project=. -e 'using Pkg; Pkg.test("DGGS", coverage=true)'
&& echo "TESTS_SUCCESSFUL=true" >> $GITHUB_ENV
docs:
name: Documentation
runs-on: ubuntu-latest
Expand Down
Loading

0 comments on commit e83160b

Please sign in to comment.