diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d1b01b0..bf74b48 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,7 +36,7 @@ permissions: jobs: test: if: "!contains(github.event.head_commit.message, 'skip ci')" - name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} + name: ${{ matrix.trixi_test }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} runs-on: ${{ matrix.os }} strategy: fail-fast: false @@ -49,6 +49,13 @@ jobs: - windows-latest arch: - x64 + trixi_test: + - tree_1d + - tree_2d + - structured_2d + - unstructured_2d + - unit + - upstream steps: - uses: actions/checkout@v4 - uses: julia-actions/setup-julia@v2 @@ -62,19 +69,35 @@ jobs: uses: julia-actions/julia-runtest@v1 with: coverage: false + env: + PYTHON: "" + TRIXI_TEST: ${{ matrix.trixi_test }} - name: Run tests with coverage + if: matrix.os == 'ubuntu-latest' && matrix.version == '1.10' uses: julia-actions/julia-runtest@v1 with: coverage: true - - uses: julia-actions/julia-processcoverage@v1 + env: + PYTHON: "" + TRIXI_TEST: ${{ matrix.trixi_test }} + - name: Process coverage results + # Only run coverage on Ubuntu + if: matrix.os == 'ubuntu-latest' + uses: julia-actions/julia-processcoverage@v1 with: directories: src,examples - - uses: codecov/codecov-action@v4 + - name: Upload coverage report to Codecov + # Only run coverage on Ubuntu + if: matrix.os == 'ubuntu-latest' + uses: codecov/codecov-action@v4 with: files: lcov.info env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} # now required for public repos - - uses: coverallsapp/github-action@v2 + - name: Upload coverage report to Coveralls + # Only run coverage on Ubuntu + if: matrix.os == 'ubuntu-latest' + uses: coverallsapp/github-action@v2 with: github-token: ${{ secrets.GITHUB_TOKEN }} path-to-lcov: ./lcov.info diff --git a/test/runtests.jl b/test/runtests.jl index d501312..7b44fac 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -7,11 +7,23 @@ using Test const TRIXI_TEST = get(ENV, "TRIXI_TEST", "all") @time @testset "TrixiShallowWater.jl tests" begin - @time if TRIXI_TEST == "all" + @time if TRIXI_TEST == "all" || TRIXI_TEST == "tree_1d" include("test_tree_1d.jl") + end + + @time if TRIXI_TEST == "all" || TRIXI_TEST == "tree_2d" include("test_tree_2d.jl") + end + + @time if TRIXI_TEST == "all" || TRIXI_TEST == "unstructured_2d" include("test_unstructured_2d.jl") + end + + @time if TRIXI_TEST == "all" || TRIXI_TEST == "structured_2d" include("test_structured_2d.jl") + end + + @time if TRIXI_TEST == "all" || TRIXI_TEST == "unit" include("test_unit.jl") end