Skip to content

Commit

Permalink
do coverage testing only on ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
benegee committed Jul 23, 2024
1 parent a9f91ca commit 1bdce06
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,21 +48,31 @@ jobs:
show-versioninfo: true
- uses: julia-actions/cache@v2

- name: Run tests
- name: Run tests without coverage
if: ${{ matrix.os != 'ubuntu-latest' }}
uses: julia-actions/julia-runtest@v1
with:
coverage: false

- name: Run tests with coverage
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: julia-actions/julia-runtest@v1
with:
coverage: true

- name: Process Julia coverage data
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: julia-actions/julia-processcoverage@v1

- name: Upload coverage data (Codecov)
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: codecov/codecov-action@v4
with:
files: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload coverage data (Coveralls)
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 1bdce06

Please sign in to comment.