Skip to content

Adds proper coverage to Tests.yml #259

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
27 changes: 27 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
flag_management:
default_rules:
carryforward: true
statuses:
- type: project
target: auto
threshold: 50%
- type: patch
target: 90%
individual_flags:
- name: GeneralAstrodynamics.jl
paths:
- src
- test
carryforward: false
- name: AstrodynamicalCalculations.jl
paths:
- lib/AstrodynamicalCalculations
- name: AstrodynamicalModels.jl
paths:
- lib/AstrodynamicalModels
- name: AstrodynamicalSolvers.jl
paths:
- lib/AstrodynamicalSolvers



17 changes: 11 additions & 6 deletions .github/workflows/Tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ jobs:
- AstrodynamicalSolvers
version:
- "1"
- "lts"
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
Expand All @@ -53,11 +52,16 @@ jobs:
project: lib/${{ matrix.group }}
- uses: julia-actions/julia-processcoverage@v1
with:
directories: lib/${{ matrix.group }}/src
directories: lib/${{ matrix.group }}
- uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
slug: JuliaAstro/${{ matrix.group }}.jl
with:
flags: ${{ matrix.group }}.jl
working-directory: lib/${{ matrix.group }}
verbose: true
fail_ci_if_error: true
files: lcov.info
test-superpackage:
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -85,9 +89,10 @@ jobs:
env:
GROUP: "GeneralAstrodynamics"
- uses: julia-actions/julia-processcoverage@v1
with:
directories: src
- uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
slug: JuliaAstro/GeneralAstrodynamics.jl
with:
verbose: true
fail_ci_if_error: true
files: lcov.info
Loading