34 lines
843 B
YAML
34 lines
843 B
YAML
name: Test
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: arch-latest
|
|
|
|
steps:
|
|
#- name: Get git-lfs
|
|
# run: apt-get update && apt-get install git-lfs
|
|
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
#- name: Checkout LFS objects
|
|
# run: git lfs checkout
|
|
|
|
- name: Setup Julia environment
|
|
uses: https://github.com/julia-actions/setup-julia@v1.9.1
|
|
with:
|
|
version: '1.9.1'
|
|
|
|
- name: Install dependencies
|
|
run: julia --project -e 'import Pkg; Pkg.instantiate()'
|
|
|
|
- name: Run tests
|
|
run: julia --project -e 'import Pkg; Pkg.test()'
|
|
|
|
- name: Run examples
|
|
run: julia --project=examples/ -e 'import Pkg; Pkg.develop(Pkg.PackageSpec(path=pwd())); Pkg.instantiate(); include("examples/import_bench.jl")'
|