From 58c874f3ac45c7e766de36a7575f70aebe6f3ff1 Mon Sep 17 00:00:00 2001 From: Jiageng Date: Fri, 16 Dec 2022 17:21:47 +0800 Subject: [PATCH 1/2] Coverage patch 1 (#1) Just a test --- .github/workflows/ci.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bdf72e5802..be0bdfde83 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,7 +48,21 @@ jobs: ${{ runner.os }}-test- ${{ runner.os }}- - uses: julia-actions/julia-buildpkg@v1 - - uses: julia-actions/julia-runtest@v1 + - name: "Run test without coverage report" + uses: julia-actions/julia-runtest@v1 + if: matrix.version != '1' || matrix.os != 'ubuntu-latest' + with: + coverage: false + + - name: "Run test with coverage report" + uses: julia-actions/julia-runtest@v1 + if: matrix.version == '1' && matrix.os == 'ubuntu-latest' + - uses: julia-actions/julia-processcoverage@v1 + if: matrix.version == '1' && matrix.os == 'ubuntu-latest' + - uses: codecov/codecov-action@v2 + if: matrix.version == '1' && matrix.os == 'ubuntu-latest' + with: + file: lcov.info docs: name: Documentation From fcbf829f5885e79d9a81727bb49b2c8b26b71923 Mon Sep 17 00:00:00 2001 From: skyleaworlder <870033938@qq.com> Date: Mon, 19 Dec 2022 13:24:39 +0000 Subject: [PATCH 2/2] update: add filter version 1.6 to trigger docs test --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index be0bdfde83..f37d675e39 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,17 +50,17 @@ jobs: - uses: julia-actions/julia-buildpkg@v1 - name: "Run test without coverage report" uses: julia-actions/julia-runtest@v1 - if: matrix.version != '1' || matrix.os != 'ubuntu-latest' + if: ${{ !contains(fromJson('["1", "1.6"]'), matrix.version) || matrix.os != 'ubuntu-latest' }} with: coverage: false - name: "Run test with coverage report" uses: julia-actions/julia-runtest@v1 - if: matrix.version == '1' && matrix.os == 'ubuntu-latest' + if: contains(fromJson('["1", "1.6"]'), matrix.version) && matrix.os == 'ubuntu-latest' - uses: julia-actions/julia-processcoverage@v1 - if: matrix.version == '1' && matrix.os == 'ubuntu-latest' + if: contains(fromJson('["1", "1.6"]'), matrix.version) && matrix.os == 'ubuntu-latest' - uses: codecov/codecov-action@v2 - if: matrix.version == '1' && matrix.os == 'ubuntu-latest' + if: contains(fromJson('["1", "1.6"]'), matrix.version) && matrix.os == 'ubuntu-latest' with: file: lcov.info