diff --git a/.github/codecov.yml b/.github/codecov.yml new file mode 100644 index 00000000..25d06a46 --- /dev/null +++ b/.github/codecov.yml @@ -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 + + + diff --git a/.github/workflows/Tests.yml b/.github/workflows/Tests.yml index dbc34d98..5d5558ec 100644 --- a/.github/workflows/Tests.yml +++ b/.github/workflows/Tests.yml @@ -31,7 +31,6 @@ jobs: - AstrodynamicalSolvers version: - "1" - - "lts" steps: - uses: actions/checkout@v4 - uses: julia-actions/setup-julia@v2 @@ -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: @@ -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 \ No newline at end of file