Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Aero-Spec authored Aug 30, 2024
1 parent f92070c commit dfc0712
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: CI

on:
push:
branches: [ "add-tests-only" ]
branches: ["add-tests-only"]
pull_request:
branches: [ "add-tests-only" ]
branches: ["add-tests-only"]
workflow_dispatch:

jobs:
Expand All @@ -13,17 +13,26 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2

- name: Set up Julia
uses: julia-actions/setup-julia@v1
with:
version: '1.6'
- run: julia --project -e 'using Pkg; Pkg.instantiate(); Pkg.build(); Pkg.test(coverage=true)'

- name: Install dependencies
run: julia --project=. -e 'using Pkg; Pkg.instantiate()'

- name: Run tests with coverage
run: julia --project=. -e 'using Pkg; Pkg.test(coverage=true)'

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: lcov.info
files: coverage/*.lcov
flags: unittests
name: codecov-umbrella
fail_ci_if_error: true

0 comments on commit dfc0712

Please sign in to comment.