From 72b54057b8a29a53924e181f1a3538f9c77594fc Mon Sep 17 00:00:00 2001 From: TT Date: Wed, 28 Aug 2024 12:38:26 +0200 Subject: [PATCH] updated codecov-v4, dependabot --- .github/dependabot.yml | 9 +++ .github/workflows/TestLTS.yml | 60 +++++++++++++++++++ .../workflows/{Test.yml => TestLatest.yml} | 26 +++++--- README.md | 3 +- 4 files changed, 88 insertions(+), 10 deletions(-) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/TestLTS.yml rename .github/workflows/{Test.yml => TestLatest.yml} (74%) diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..47098b0 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,9 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "monthly" + labels: + - "dependencies" + - "github-actions" \ No newline at end of file diff --git a/.github/workflows/TestLTS.yml b/.github/workflows/TestLTS.yml new file mode 100644 index 0000000..8e201f0 --- /dev/null +++ b/.github/workflows/TestLTS.yml @@ -0,0 +1,60 @@ +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, x86] + os: [ubuntu-latest, windows-latest, macOS-latest] + experimental: [false] + exclude: + - os: macOS-latest + julia-arch: x86 + + 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 diff --git a/.github/workflows/Test.yml b/.github/workflows/TestLatest.yml similarity index 74% rename from .github/workflows/Test.yml rename to .github/workflows/TestLatest.yml index 59dfa57..880e200 100644 --- a/.github/workflows/Test.yml +++ b/.github/workflows/TestLatest.yml @@ -1,18 +1,24 @@ -name: Run FMICore.jl 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'] # "1" automatically expands to the latest stable 1.x release of Julia julia-arch: [x64, x86] os: [ubuntu-latest, windows-latest, macOS-latest] experimental: [false] @@ -21,9 +27,9 @@ jobs: julia-arch: x86 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" @@ -34,7 +40,7 @@ jobs: # Set up cache - name: "Set up cache" - uses: actions/cache@v2 + uses: actions/cache@v3 env: cache-name: cache-artifacts with: @@ -59,6 +65,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 diff --git a/README.md b/README.md index ed9f594..664042e 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,8 @@ [*FMICore.jl*](https://github.com/ThummeTo/FMICore.jl) implements the low-level equivalents of the C-functions and C-data types of the FMI-standard ([fmi-standard.org](http://fmi-standard.org/)) for the Julia programming language. [![Dev Docs](https://img.shields.io/badge/docs-dev-blue.svg)](https://ThummeTo.github.io/FMI.jl/dev) -[![Run Tests](https://github.com/ThummeTo/FMICore.jl/actions/workflows/Test.yml/badge.svg)](https://github.com/ThummeTo/FMICore.jl/actions/workflows/Test.yml) +[![Test (latest)](https://github.com/ThummeTo/FMICore.jl/actions/workflows/TestLatest.yml/badge.svg)](https://github.com/ThummeTo/FMICore.jl/actions/workflows/TestLatest.yml) +[![Test (LTS)](https://github.com/ThummeTo/FMICore.jl/actions/workflows/TestLTS.yml/badge.svg)](https://github.com/ThummeTo/FMICore.jl/actions/workflows/TestLTS.yml) [![Run PkgEval](https://github.com/ThummeTo/FMICore.jl/actions/workflows/Eval.yml/badge.svg)](https://github.com/ThummeTo/FMICore.jl/actions/workflows/Eval.yml) [![Coverage](https://codecov.io/gh/ThummeTo/FMICore.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/ThummeTo/FMICore.jl)