Skip to content

Update Tests with new MonteCarlo version #46

Update Tests with new MonteCarlo version

Update Tests with new MonteCarlo version #46

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Julia
uses: julia-actions/setup-julia@v2
with:
version: '1.9'
- name: Cache Julia packages
uses: actions/cache@v4
with:
# Cache the artifacts and compiled directories
path: |
~/.julia/artifacts
~/.julia/compiled
# Unique cache key based on the dependencies
key: ${{ runner.os }}-julia-${{ hashFiles('**/Project.toml', '**/Manifest.toml') }}
# Fallback keys if the exact cache isn't found
restore-keys: |
${{ runner.os }}-julia-
- name: Run tests
run: julia --project=. -e 'using Pkg; Pkg.add(PackageSpec(url="https://github.com/TheDisorderedOrganization/MonteCarlo.git")); Pkg.test(coverage=true)'
- uses: julia-actions/julia-processcoverage@v1
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}