Skip to content

Commit 991dbd1

Browse files
authored
Switch CI to github actions (#406)
* Switch CI to github actions * Don't test on Windows (like our Travis config) * rm depwarn=error * fix example * more granular path triggers
1 parent a80853b commit 991dbd1

File tree

8 files changed

+146
-29
lines changed

8 files changed

+146
-29
lines changed

.github/workflows/CompatHelper.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
name: CompatHelper
2-
32
on:
43
schedule:
54
- cron: '00 00 * * *'
6-
5+
workflow_dispatch:
76
jobs:
87
CompatHelper:
98
runs-on: ubuntu-latest
109
steps:
11-
- uses: julia-actions/setup-julia@latest
12-
with:
13-
version: 1.3
1410
- name: Pkg.add("CompatHelper")
1511
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
1612
- name: CompatHelper.main()
1713
env:
1814
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15+
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
1916
run: julia -e 'using CompatHelper; CompatHelper.main()'

.github/workflows/TagBot.yml

Lines changed: 6 additions & 2 deletions
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 }}

.github/workflows/ci.yml

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

.github/workflows/docs.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Documentation
2+
on:
3+
push:
4+
branches: [master]
5+
tags: '*'
6+
paths:
7+
- '.github/workflows/docs.yml'
8+
- 'src/**'
9+
- 'docs/**'
10+
pull_request:
11+
types: [opened, synchronize, reopened]
12+
paths:
13+
- '.github/workflows/docs.yml'
14+
- 'src/**'
15+
- 'docs/**'
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v2
21+
- uses: julia-actions/setup-julia@latest
22+
with:
23+
# Build documentation on Julia 1.0
24+
version: '1.0'
25+
- name: Install dependencies
26+
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
27+
- name: Build and deploy
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
30+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key
31+
run: julia --project=docs/ docs/make.jl

.github/workflows/nightly_ci.yml

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

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Convex.jl
22

3-
[![Build Status](https://travis-ci.org/jump-dev/Convex.jl.svg?branch=master)](https://travis-ci.org/jump-dev/Convex.jl)
3+
[![Build Status](https://github.com/jump-dev/Convex.jl/workflows/CI/badge.svg)](https://github.com/jump-dev/Convex.jl/actions?query=workflow%3ACI)
44
[![Coverage](https://codecov.io/gh/jump-dev/Convex.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/jump-dev/Convex.jl)
55
[![](https://img.shields.io/badge/docs-stable-blue.svg)](https://jump.dev/Convex.jl/stable)
66
[![](https://img.shields.io/badge/docs-dev-blue.svg)](https://jump.dev/Convex.jl/dev)

docs/examples_literate/mixed_integer/aux_files/antidiag.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# Please read expressions.jl first.
1010
#############################################################################
1111
import Convex.sign, Convex.monotonicity, Convex.curvature, Convex.evaluate, Convex.conic_form!
12-
using Convex: AbstractExpr, ConstVexity, Nondecreasing, has_conic_form, cache_conic_form, get_conic_form
12+
using Convex: AbstractExpr, ConstVexity, Nondecreasing, has_conic_form, cache_conic_form!, get_conic_form
1313
export antidiag
1414

1515
### Diagonal

0 commit comments

Comments
 (0)