Skip to content

Commit

Permalink
Try to run Julia tests on ci
Browse files Browse the repository at this point in the history
  • Loading branch information
sverhoeven committed Oct 15, 2024
1 parent 6ccd2a4 commit 3131b53
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 5 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/julia-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Julia test

on:
push:
branches:
- main
tags: ["*"]
paths:
- "RemoteBMI.jl/**"
- .github/workflows/julia-test.yml
workflow_dispatch:

jobs:
test:
uses: ./RemoteBMI.jl/.github/workflows/ReusableTest.yml
with:
os: ${{ matrix.os }}
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
allow_failure: ${{ matrix.allow_failure }}
run_codecov: ${{ matrix.version == '1' && matrix.os == 'ubuntu-latest' }}
strategy:
fail-fast: false
matrix:
version:
- "lts"
- "1"
os:
- ubuntu-latest
arch:
- x64
allow_failure: [false]
19 changes: 14 additions & 5 deletions RemoteBMI.jl/.github/workflows/ReusableTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,13 @@ on:
required: false
type: boolean
default: false
secrets:
codecov_token:
required: true

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
id-token: write # This is required for requesting the JWT

jobs:
test:
Expand All @@ -39,14 +43,19 @@ jobs:
with:
version: ${{ inputs.version }}
arch: ${{ inputs.arch }}
project: './RemoteBMI.jl'
- name: Use Julia cache
uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@v1
with:
project: './RemoteBMI.jl'
- uses: julia-actions/julia-runtest@v1
with:
project: './RemoteBMI.jl'
- uses: julia-actions/julia-processcoverage@v1
if: ${{ inputs.run_codecov }}
if: ${{ inputs.run_codecov }}
- uses: codecov/codecov-action@v4
if: ${{ inputs.run_codecov }}
with:
file: lcov.info
token: ${{ secrets.codecov_token }}
use_oidc: true

0 comments on commit 3131b53

Please sign in to comment.