From ae49426c3efbf68ad7fdc88350a9eab119d3057a Mon Sep 17 00:00:00 2001 From: Aero-Spec Date: Fri, 30 Aug 2024 00:00:47 -0400 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e45b95f..8bc3a47 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,6 +9,7 @@ on: jobs: build: + # Use a matrix to run on multiple OS versions runs-on: ${{ matrix.os }} strategy: @@ -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 }}