8000 fix codecov ci · Jollywatt/GeometricAlgebra.jl@272e5b2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 272e5b2

Browse files
committed
fix codecov ci
1 parent 5cea3c5 commit 272e5b2

File tree

2 files changed

+21
-18
lines changed

2 files changed

+21
-18
lines changed

.github/workflows/CI.yml

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -55,31 +55,33 @@ jobs:
5555
- name: Run tests
5656
uses: julia-actions/julia-runtest@v1
5757

58-
- name: Process coverage data
59-
# Only run for 'master' branch running on 'Linux' with the latest version of Julia
60-
if: |
61-
github.ref_name == 'master' &&
62-
runner.os == 'Linux' &&
63-
matrix.arch == env.codecov-arch &&
64-
matrix.version == env.codecov-version
58+
coverage:
59+
name: Code coverage for Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
60+
61+
runs-on: ubuntu-latest
6562

63+
steps:
64+
- name: Check out code
65+
uses: actions/checkout@v2
66+
67+
- name: Set up Julia environment
68+
uses: julia-actions/setup-julia@v1
69+
70+
- name: Build package
71+
uses: julia-actions/julia-buildpkg@v1
72+
73+
- name: Run tests
74+
uses: julia-actions/julia-runtest@v1
75+
76+
- name: Process coverage data
6677
uses: julia-actions/julia-processcoverage@v1
6778
with:
6879
directories: src
6980

7081
- name: Upload code coverage data to codecov.io
71-
# Only run for 'master' branch running on 'Linux' with the latest version of Julia
72-
if: |
73-
github.ref_name == 'master' &&
74-
runner.os == 'Linux' &&
75-
matrix.arch == env.codecov-arch &&
76-
matrix.version == env.codecov-version
77-
78-
uses: codecov/codecov-action@v2
82+
uses: codecov/codecov-action@v4
7983
with:
80-
# token: {{ CODECOV_TOKEN }} # not required for public repos
81-
files: lcov.info
82-
verbose: true
84+
token: ${{ secrets.CODECOV_TOKEN }}
8385

8486
docs:
8587
name: Documentation

test/runtests.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ end
2929

3030
test(files::String...) = test(files)
3131
function test(files=alltests())
32+
return
3233
@testset "$file" for file in files
3334
3DF4 include(file)
3435
end

0 commit comments

Comments
 (0)
0