Skip to content

Merge pull request #23 from OmegaLambda1998/compathelper/new_version/… #18

Merge pull request #23 from OmegaLambda1998/compathelper/new_version/…

Merge pull request #23 from OmegaLambda1998/compathelper/new_version/… #18

name: Test and Code Coverage
on:
push:
branches:
- main
paths-ignore:
- docs
- .github
- README.md
tags: ['*']
pull_request:
branches:
- main
workflow_dispatch:
concurrency:
# Skip intermediate builds: always.
# Cancel intermediate builds: always.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Julia ${{ matrix.julia-version }} - ${{ matrix.os }} - ${{ matrix.julia-arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
timeout-minutes: 60
permissions: # needed to allow julia-actions/cache to proactively delete old caches that it has created
actions: write
contents: read
strategy:
fail-fast: false
matrix:
# '1.6' is the lowest supported version
# '1' is the latest stable version
# 'nightly' is the latest nightly release
julia-version: ['1.6', '1', 'nightly']
julia-arch: ['x64']
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@latest
with:
version: ${{ matrix.julia-version }}
arch: ${{ matrix.julia-arch }}
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
if: ${{ (matrix.julia-version == 'nightly') && (matrix.julia-arch == 'x64') && (matrix.os == 'ubuntu-latest') }}
- uses: codecov/codecov-action@v4
if: ${{ (matrix.julia-version == 'nightly') && (matrix.julia-arch == 'x64') && (matrix.os == 'ubuntu-latest') }}
with:
files: lcov.info
- uses: julia-actions/julia-uploadcoveralls@v1
if: ${{ (matrix.julia-version == 'nightly') && (matrix.julia-arch == 'x64') && (matrix.os == 'ubuntu-latest') }}
env:
COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }}