Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vdayanand authored Nov 4, 2024
1 parent c7e77b1 commit ff6b35d
Showing 1 changed file with 32 additions and 24 deletions.
56 changes: 32 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,42 @@
name: CI

on:
push:
branches:
- main
branches: [main]
tags: ["*"]
pull_request:
branches:
- main

jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
julia-version: ['1.10']
version:
- '1' # automatically expands to the latest stable 1.x release of Julia
os:
- ubuntu-latest
- macos-latest
- windows-latest
arch:
- x64
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Julia
uses: julia-actions/setup-julia@v1
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}

- name: Install dependencies
run: |
julia --project=. -e 'using Pkg; Pkg.instantiate()'
- name: Run tests
run: |
julia --project=. -e 'using Pkg; Pkg.test()'
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: actions/cache@v1
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
with:
file: lcov.info

0 comments on commit ff6b35d

Please sign in to comment.