Skip to content

Commit 5f2401b

Browse files
authored
Replace Travis with Github Action (#1470)
1 parent 72eb0c1 commit 5f2401b

File tree

5 files changed

+60
-29
lines changed

5 files changed

+60
-29
lines changed

.github/workflows/DynamicHMC.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,16 @@ jobs:
2424
with:
2525
version: ${{ matrix.version }}
2626
arch: ${{ matrix.arch }}
27+
- uses: actions/cache@v1
28+
env:
29+
cache-name: cache-artifacts
30+
with:
31+
path: ~/.julia/artifacts
32+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
33+
restore-keys: |
34+
${{ runner.os }}-test-${{ env.cache-name }}-
35+
${{ runner.os }}-test-
36+
${{ runner.os }}-
2737
- uses: julia-actions/julia-buildpkg@latest
2838
- uses: julia-actions/julia-runtest@latest
2939
env:

.github/workflows/Numerical.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@ jobs:
2424
with:
2525
version: ${{ matrix.version }}
2626
arch: ${{ matrix.arch }}
27+
- uses: actions/cache@v1
28+
env:
29+
cache-name: cache-artifacts
30+
with:
31+
path: ~/.julia/artifacts
32+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
33+
restore-keys: |
34+
${{ runner.os }}-test-${{ env.cache-name }}-
35+
${{ runner.os }}-test-
2736
- uses: julia-actions/julia-buildpkg@latest
2837
- uses: julia-actions/julia-runtest@latest
2938
env:

.github/workflows/StanCI.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,16 @@ jobs:
2424
with:
2525
version: ${{ matrix.version }}
2626
arch: ${{ matrix.arch }}
27+
- uses: actions/cache@v1
28+
env:
29+
cache-name: cache-artifacts
30+
with:
31+
path: ~/.julia/artifacts
32+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
33+
restore-keys: |
34+
${{ runner.os }}-test-${{ env.cache-name }}-
35+
${{ runner.os }}-test-
36+
${{ runner.os }}-
2737
- uses: julia-actions/julia-buildpkg@latest
2838
- uses: julia-actions/julia-runtest@latest
2939
env:

.github/workflows/TuringCI.yml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,51 @@ jobs:
1717
- '1'
1818
os:
1919
- ubuntu-latest
20-
- windows-latest
2120
- macOS-latest
21+
- windows-latest
2222
arch:
2323
- x86
2424
- x64
25+
num_threads:
26+
- 1
27+
- 2
2528
exclude:
2629
- os: windows-latest
2730
arch: x86
2831
- os: macOS-latest
2932
arch: x86
33+
- os: macOS-latest
34+
num_threads: 2
35+
- os: windows-latest
36+
num_threads: 2
3037
steps:
3138
- uses: actions/checkout@v2
3239
- uses: julia-actions/setup-julia@v1
3340
with:
3441
version: ${{ matrix.version }}
3542
arch: ${{ matrix.arch }}
43+
- uses: actions/cache@v1
44+
env:
45+
cache-name: cache-artifacts
46+
with:
47+
path: ~/.julia/artifacts
48+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
49+
restore-keys: |
50+
${{ runner.os }}-test-${{ env.cache-name }}-
51+
${{ runner.os }}-test-
52+
${{ runner.os }}-
3653
- uses: julia-actions/julia-buildpkg@latest
3754
- uses: julia-actions/julia-runtest@latest
55+
env:
56+
JULIA_NUM_THREADS: ${{ matrix.num_threads }}
57+
- uses: julia-actions/julia-processcoverage@v1
58+
if: matrix.version == '1' && matrix.os == 'ubuntu-latest' && matrix.num_threads == 1
59+
- uses: codecov/codecov-action@v1
60+
if: matrix.version == '1' && matrix.os == 'ubuntu-latest' && matrix.num_threads == 1
61+
with:
62+
file: lcov.info
63+
- uses: coverallsapp/github-action@master
64+
if: matrix.version == '1' && matrix.os == 'ubuntu-latest' && matrix.num_threads == 1
65+
with:
66+
github-token: ${{ secrets.GITHUB_TOKEN }}
67+
path-to-lcov: lcov.info

.travis.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)