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 abb1eed commit ae49426
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:

jobs:
build:
# Use a matrix to run on multiple OS versions
runs-on: ${{ matrix.os }}

strategy:
Expand All @@ -18,18 +19,38 @@ jobs:
steps:
- uses: actions/checkout@v4

# This will run 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 }}
# Install Julia on each OS
- name: Set up Julia
uses: julia-actions/setup-julia@v1
with:
version: '1.6'
version: '1.6' # Or whatever version you are using

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

# Run tests with code coverage
- name: Run tests with coverage
run: julia --project=. --code-coverage=all test/runtests.jl

- name: Upload coverage to Coveralls # Or Codecov
# Upload coverage to Codecov or Coveralls
- name: Upload coverage to Codecov # Use this step for Codecov
run: julia -e 'using Coverage; Codecov.submit(Codecov.process_folder())'
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

# Alternatively, use this step for Coveralls
- name: Upload coverage to Coveralls # Use this step for Coveralls
run: julia -e 'using Coverage; Coveralls.submit(Coveralls.process_folder())'
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}

0 comments on commit ae49426

Please sign in to comment.