Skip to content

Update ci.yml

Update ci.yml #77

Workflow file for this run

name: CI
on:
push:
branches: ["add-tests-only"]
pull_request:
branches: ["add-tests-only"]
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Julia
uses: julia-actions/setup-julia@v1
with:
version: '1.6' # Ensure this matches your Julia version
- 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 }}
fail_ci_if_error: true