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 1a65115 commit f25bfec
Showing 1 changed file with 30 additions and 5 deletions.
35 changes: 30 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,42 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
# Step 1: Check out the repository
- uses: actions/checkout@v4

# This will run on all specified operating systems
# Step 2: Set up Julia (only on Ubuntu, as Julia setup might not be available for all OSes directly)
- name: Set up Julia
if: matrix.os == 'ubuntu-latest'
uses: julia-actions/[email protected]
with:
version: '1.10'

# Step 3: Install dependencies (only run on Ubuntu)
- name: Install dependencies
if: matrix.os == 'ubuntu-latest'
run: julia -e 'using Pkg; Pkg.instantiate()'

# Step 4: Run tests with coverage (only run on Ubuntu)
- name: Run tests with coverage
if: matrix.os == 'ubuntu-latest'
run: julia --project=. -e 'using Pkg; Pkg.test(coverage=true)'

# Step 5: Upload coverage to Codecov (only run on Ubuntu)
- name: Upload coverage to Codecov
if: matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }} # Only needed for private repos
files: ./coverage/lcov.info # Path to your coverage report (adjust if needed)
flags: unittests
name: codecov-umbrella
fail_ci_if_error: true

# Step 6: Run additional commands on all specified operating systems
- name: Run a one-line script
run: echo Hello, world! Running on ${{ matrix.os }}

# Run multiple commands as part of the CI process
- name: Run a multi-line script
run: |
echo Add other actions to build,
echo test, and deploy your project on ${{ matrix.os }}

0 comments on commit f25bfec

Please sign in to comment.