Skip to content

Commit

Permalink
Update UnitTest.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnychen94 authored Dec 5, 2024
1 parent ab90e57 commit 8729343
Showing 1 changed file with 29 additions and 19 deletions.
48 changes: 29 additions & 19 deletions .github/workflows/UnitTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,41 +7,51 @@ on:
branches:
- master
pull_request:
schedule:
- cron: '20 00 1 * *'

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
julia-version: ['1.6', '1', 'nightly']
os: [ubuntu-latest, windows-latest, macOS-latest]
version:
- '1' # Current stable version
os:
- ubuntu-latest
- windows-latest
- macOS-13
arch:
- x64
include:
- os: macOS-latest
arch: aarch64
version: '1'
- os: ubuntu-latest
arch: x86
version: '1'
- os: ubuntu-latest
arch: x64
version: 'min'
- os: ubuntu-latest
arch: x64
version: 'nightly'

steps:
- uses: actions/checkout@v1.0.0
- uses: actions/checkout@v4
- name: "Set up Julia"
uses: julia-actions/setup-julia@v1
uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.julia-version }}
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}

- name: Cache artifacts
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/cache@v2

- name: "Unit Test"
uses: julia-actions/julia-runtest@v1
uses: julia-actions/julia-runtest@master

- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
- uses: codecov/codecov-action@v4
with:
file: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 8729343

Please sign in to comment.