Skip to content

Commit 6b5ac3c

Browse files
authored
Update ci.yml
1 parent 22116b1 commit 6b5ac3c

File tree

1 file changed

+28
-4
lines changed

1 file changed

+28
-4
lines changed

Diff for: .github/workflows/ci.yml

+28-4
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,21 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v4
2020

21-
- name: Set up Julia
21+
- name: Set up Julia (Ubuntu)
2222
if: matrix.os == 'ubuntu-latest'
2323
uses: julia-actions/setup-julia@v1
2424
with:
2525
version: '1.10'
2626

27-
- name: Install dependencies
27+
- name: Install dependencies (Ubuntu)
2828
if: matrix.os == 'ubuntu-latest'
2929
run: julia -e 'using Pkg; Pkg.instantiate()'
3030

31-
- name: Run tests with coverage
31+
- name: Run tests with coverage (Ubuntu)
3232
if: matrix.os == 'ubuntu-latest'
3333
run: julia --project=. -e 'using Pkg; Pkg.test(coverage=true)'
3434

35-
- name: Upload coverage to Codecov
35+
- name: Upload coverage to Codecov (Ubuntu)
3636
if: matrix.os == 'ubuntu-latest'
3737
uses: codecov/codecov-action@v3
3838
with:
@@ -42,6 +42,30 @@ jobs:
4242
name: codecov-umbrella
4343
fail_ci_if_error: true
4444

45+
- name: Set up Julia (macOS and Windows)
46+
if: matrix.os != 'ubuntu-latest'
47+
uses: julia-actions/setup-julia@v1
48+
with:
49+
version: '1.10'
50+
51+
- name: Install dependencies (macOS and Windows)
52+
if: matrix.os != 'ubuntu-latest'
53+
run: julia -e 'using Pkg; Pkg.instantiate()'
54+
55+
- name: Run tests with coverage (macOS and Windows)
56+
if: matrix.os != 'ubuntu-latest'
57+
run: julia --project=. -e 'using Pkg; Pkg.test(coverage=true)'
58+
59+
- name: Upload coverage to Codecov (macOS and Windows)
60+
if: matrix.os != 'ubuntu-latest'
61+
uses: codecov/codecov-action@v3
62+
with:
63+
token: ${{ secrets.CODECOV_TOKEN }}
64+
files: ./coverage/lcov.info
65+
flags: unittests
66+
name: codecov-umbrella
67+
fail_ci_if_error: true
68+
4569
- name: Run a one-line script
4670
run: echo Hello, world! Running on ${{ matrix.os }}
4771

0 commit comments

Comments
 (0)