Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

codecov path #12

Merged
merged 1 commit into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions .github/workflows/TestLTS.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Test v1.6 (LTS)

on:
workflow_dispatch:
pull_request:
push:
branches:
- main
paths:
- 'src/**'
- 'test/**'
- '.github/workflows/Test.yml'
- 'Project.toml'

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
julia-version: ['1.6']
julia-arch: [x64]
os: [ubuntu-latest, windows-latest]
experimental: [false]

steps:
# Checks-out your repository
- name: Check out repository
uses: actions/checkout@v3

# Set up Julia
- name: "Set up Julia"
uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
arch: ${{ matrix.julia-arch }}

# Set up cache
- name: "Set up cache"
uses: actions/cache@v3
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-

# Build package
- name: "Build package"
uses: julia-actions/julia-buildpkg@v1

# Run the tests
- name: "Run tests"
uses: julia-actions/julia-runtest@v1
26 changes: 17 additions & 9 deletions .github/workflows/Test.yml → .github/workflows/TestLatest.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,32 @@
name: Run tests
name: Test v1 (latest)

on:
on:
workflow_dispatch:
push:
pull_request:
push:
branches:
- main
paths:
- 'src/**'
- 'test/**'
- '.github/workflows/Test.yml'
- 'Project.toml'

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
# Don't cancel in-progress jobs if any matrix job fails
fail-fast: false
matrix:
julia-version: ['1.6', '1'] # "1" automatically expands to the latest stable 1.x release of Julia
julia-version: ['1']
julia-arch: [x64]
os: [ubuntu-latest, windows-latest]
experimental: [false]

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
# Checks-out your repository
- name: Check out repository
uses: actions/checkout@v2
uses: actions/checkout@v3

# Set up Julia
- name: "Set up Julia"
Expand All @@ -31,7 +37,7 @@ jobs:

# Set up cache
- name: "Set up cache"
uses: actions/cache@v2
uses: actions/cache@v3
env:
cache-name: cache-artifacts
with:
Expand All @@ -56,6 +62,8 @@ jobs:

# Run codecov
- name: "Run CodeCov"
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
file: lcov.info
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
![FMI.jl Logo](https://github.com/ThummeTo/FMI.jl/blob/main/logo/dark/fmijl_logo_640_320.png?raw=true "FMI.jl Logo")
# FMISensitivity.jl

[![Run Tests](https://github.com/ThummeTo/FMISensitivity.jl/actions/workflows/Test.yml/badge.svg)](https://github.com/ThummeTo/FMISensitivity.jl/actions/workflows/Test.yml)
[![Test (latest)](https://github.com/ThummeTo/FMISensitivity.jl/actions/workflows/TestLatest.yml/badge.svg)](https://github.com/ThummeTo/FMISensitivity.jl/actions/workflows/TestLatest.yml)
[![Test (LTS)](https://github.com/ThummeTo/FMISensitivity.jl/actions/workflows/TestLTS.yml/badge.svg)](https://github.com/ThummeTo/FMISensitivity.jl/actions/workflows/TestLTS.yml)
[![Coverage](https://codecov.io/gh/ThummeTo/FMISensitivity.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/ThummeTo/FMISensitivity.jl)
[![ColPrac: Contributor's Guide on Collaborative Practices for Community Packages](https://img.shields.io/badge/ColPrac-Contributor's%20Guide-blueviolet)](https://github.com/SciML/ColPrac)

Expand Down
Loading