-
Notifications
You must be signed in to change notification settings - Fork 4
45 lines (35 loc) · 1.26 KB
/
ci.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
40
41
42
43
44
45
name: Unit Tests
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
pull_request:
push:
workflow_dispatch:
env:
JIVE_PROCS: 1
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest
with:
version: 1.10.5
- name: Install Latex Dependencies
run:
sudo apt update && sudo apt install -y pdf2svg texlive-latex-base texlive-binaries texlive-latex-extra texlive-luatex
- name: Install SymPy
run:
pip3 install sympy
- name: Instantiate Packages
run: |
julia --project -e 'using Pkg; Pkg.instantiate(); Pkg.build();'
julia --project -e 'using Pkg; Pkg.add(url="https://github.com/PoorvaGarg/IRTools.jl", rev="loop-break-patch"); Pkg.add("SymPy");'
- name: Unit Tests
run:
julia --project --check-bounds=yes --depwarn=yes -e 'import Pkg; Pkg.test(; coverage=true)'
- name: Codecov Upload
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run:
julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder());'