Merge pull request #76 from danlooo/danlooo/package_compat_cleanup cl… #164
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
tags: ["*"] | |
pull_request: | |
concurrency: | |
# Skip intermediate builds: always. | |
# Cancel intermediate builds: only if it is a pull request build. | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} | |
jobs: | |
test: | |
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
version: | |
- "1.9" | |
os: | |
- ubuntu-latest | |
arch: | |
- x64 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: julia-actions/setup-julia@v1 | |
with: | |
version: ${{ matrix.version }} | |
arch: ${{ matrix.arch }} | |
- uses: julia-actions/cache@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: 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 | |
# permissions: | |
# contents: write | |
# statuses: write | |
# steps: | |
# - uses: actions/checkout@v2 | |
# - uses: julia-actions/setup-julia@v1 | |
# with: | |
# version: "1" | |
# - uses: julia-actions/julia-buildpkg@v1 | |
# - uses: julia-actions/julia-docdeploy@v1 | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# # 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 | |
# - run: | | |
# julia --project=docs -e ' | |
# using Documenter: DocMeta, doctest | |
# using DGGS | |
# DocMeta.setdocmeta!(DGGS, :DocTestSetup, :(using DGGS); recursive=true) | |
# doctest(DGGS)' |