-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (46 loc) · 1.45 KB
/
JuliaStable.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
46
47
name: JuliaStable
on:
push:
branches:
- main
- staging
- trying
pull_request:
jobs:
test:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
steps:
- name: Set up Actions
uses: actions/checkout@v1
- name: Set up Julia
uses: julia-actions/setup-julia@v1
with:
version: "1"
- name: Use Github Registry for Linux and Mac-OS
if: runner.os != 'Windows'
run: |
julia -e 'using Pkg; Pkg.Registry.rm("General"); Pkg.Registry.add(RegistrySpec(url="https://github.com/JuliaRegistries/General"))'
julia --project -e 'ENV["PYTHON"]=""; using Pkg; Pkg.instantiate();'
- name: Use Github Registry for Windows
if: runner.os == 'Windows'
run: |
julia -e 'using Pkg; Pkg.Registry.rm(\"General\"); Pkg.Registry.add(RegistrySpec(url=\"https://github.com/JuliaRegistries/General\"))'
julia --project -e 'ENV[\"PYTHON\"]=\"\"; using Pkg; Pkg.instantiate();'
- name: Run Tests
uses: julia-actions/julia-runtest@latest
- name: Process Coverage
if: runner.os == 'Linux'
uses: julia-actions/julia-processcoverage@v1
- name: Submit Coverage
if: runner.os == 'Linux'
uses: codecov/codecov-action@v1
with:
file: lcov.info