Skip to content

Commit f702a07

Browse files
committed
add CI
1 parent d5f0d3e commit f702a07

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Test CI
2+
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
branches: [main, master]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- uses: julia-actions/setup-julia@v1
17+
with:
18+
version: "1" # <-- Or your preferred Julia version
19+
20+
- name: Cache Julia deps
21+
uses: actions/cache@v4
22+
with:
23+
path: |
24+
~/.julia/artifacts
25+
~/.julia/compiled
26+
~/.julia/environments
27+
~/.julia/packages
28+
key: ${{ runner.os }}-julia-${{ hashFiles('Project.toml', 'Manifest.toml') }}
29+
30+
- name: Install dependencies
31+
run: julia --project=. -e 'import Pkg; Pkg.instantiate()'
32+
33+
- name: Run tests
34+
run: julia --project=. -e 'import Pkg; Pkg.test()'

0 commit comments

Comments
 (0)