-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 1.28 KB
/
Test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Run tests
on: [push, pull_request]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
julia-version: ['nightly']
julia-arch: [x64]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- uses: webfactory/ssh-agent@v0.5.4
with:
ssh-private-key: ${{ secrets.ENV_KEY }}
- uses: julia-actions/setup-julia@latest
with:
version: ${{ matrix.julia-version }}
- uses: julia-actions/cache@v1
- uses: actions/cache@v3
name: Cache Google Fonts data
with:
path: test/google_fonts
key: ${{ runner.OS }}-google-fonts-cache-${{ hashFiles('test/google_fonts/**') }}
restore-keys: ${{ runner.os }}-google-fonts-cache-
- run: julia --color=yes --project -e 'using Pkg;
Pkg.Registry.add(Pkg.RegistrySpec(url = "git@github.com:serenity4/Graphics"));
Pkg.Registry.add(Pkg.RegistrySpec(url = "git@github.com:JuliaRegistries/General"));
Pkg.instantiate()'
- run: julia --color=yes --project -e 'using Pkg; Pkg.test(coverage = true)'
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v2
with:
files: lcov.info
env:
JULIA_PKG_USE_CLI_GIT: true