Skip to content

Commit cd84ba4

Browse files
committed
Switch to Github Action for CI
1 parent bce6c14 commit cd84ba4

File tree

4 files changed

+62
-8
lines changed

4 files changed

+62
-8
lines changed

Diff for: .github/workflows/CompatHelper.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,17 @@ name: CompatHelper
33
on:
44
schedule:
55
- cron: '00 00 * * *'
6+
workflow_dispatch:
67

78
jobs:
89
CompatHelper:
9-
runs-on: ubuntu-latest
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
matrix:
13+
julia-version: [1.2.0]
14+
julia-arch: [x86]
15+
os: [ubuntu-latest]
1016
steps:
11-
- uses: julia-actions/setup-julia@latest
12-
with:
13-
version: 1.3
1417
- name: Pkg.add("CompatHelper")
1518
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
1619
- name: CompatHelper.main()

Diff for: .github/workflows/TagBot.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
name: TagBot
22
on:
3-
schedule:
4-
- cron: 0 * * * *
3+
issue_comment:
4+
types:
5+
- created
6+
workflow_dispatch:
57
jobs:
68
TagBot:
9+
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
710
runs-on: ubuntu-latest
811
steps:
912
- uses: JuliaRegistries/TagBot@v1
1013
with:
1114
token: ${{ secrets.GITHUB_TOKEN }}
15+
ssh: ${{ secrets.DOCUMENTER_KEY }}

Diff for: .github/workflows/ci.yml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: [master]
5+
pull_request:
6+
types: [opened, synchronize, reopened]
7+
jobs:
8+
test:
9+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
include:
15+
- version: '1'
16+
os: ubuntu-latest
17+
arch: x64
18+
- version: '1'
19+
os: ubuntu-latest
20+
arch: x86
21+
- version: 'nightly'
22+
os: ubuntu-latest
23+
arch: x64
24+
steps:
25+
- uses: actions/checkout@v2
26+
- uses: julia-actions/setup-julia@v1
27+
with:
28+
version: ${{ matrix.version }}
29+
arch: ${{ matrix.arch }}
30+
- uses: actions/cache@v1
31+
env:
32+
cache-name: cache-artifacts
33+
with:
34+
path: ~/.julia/artifacts
35+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
36+
restore-keys: |
37+
${{ runner.os }}-test-${{ env.cache-name }}-
38+
${{ runner.os }}-test-
39+
${{ runner.os }}-
40+
- uses: julia-actions/julia-buildpkg@v1
41+
- uses: julia-actions/julia-runtest@v1
42+
with:
43+
depwarn: error
44+
- uses: julia-actions/julia-processcoverage@v1
45+
- uses: codecov/codecov-action@v1
46+
with:
47+
file: lcov.info

Diff for: README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ model = Model(optimizer_constructor)
168168
optimize!(model)
169169
```
170170

171-
[build-img]: https://travis-ci.org/blegat/SetProg.jl.svg?branch=master
172-
[build-url]: https://travis-ci.org/blegat/SetProg.jl
171+
[build-img]: https://github.org/blegat/SetProg.jl/workflows/CI/badge.svg?branch=master
172+
[build-url]: https://github.org/blegat/SetProg.jl/actions?query=workflow%3ACI
173173
[codecov-img]: http://codecov.io/github/blegat/SetProg.jl/coverage.svg?branch=master
174174
[codecov-url]: http://codecov.io/github/blegat/SetProg.jl?branch=master
175175

0 commit comments

Comments
 (0)