Skip to content

Commit

Permalink
Update CI.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonOresten committed Nov 17, 2023
1 parent bd3ad7e commit e9aae3c
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,38 +13,32 @@ concurrency:

jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
name: ProtPlot Julia ${{ matrix.version }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- '1.9'
- 'nightly'
- '1.9' # Use the specific version you need
- 'nightly' # If you need to test on the latest development version
os:
- ubuntu-latest
arch:
- x64

steps:
- uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v3
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}

- uses: julia-actions/cache@v1

- name: Install system dependencies
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
run: julia --project -e 'using Pkg; Pkg.instantiate()'

- name: Run tests with Xvfb
run: xvfb-run -a -s '-screen 0 1024x768x24' julia --project -e 'using Pkg; Pkg.test(coverage=true)'

- 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: Build Package
uses: julia-actions/julia-buildpkg@v1
- name: Run Tests
run: DISPLAY=:0 xvfb-run -s '-screen 0 1024x768x24' julia --color=yes --project -e 'using Pkg; Pkg.test("ProtPlot", coverage=true)'
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v3
with:
files: lcov.info
file: lcov.info

0 comments on commit e9aae3c

Please sign in to comment.