Skip to content

Commit

Permalink
Switch CI to Github actions (#2370)
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Nov 9, 2020
1 parent b7605dd commit af2355d
Show file tree
Hide file tree
Showing 7 changed files with 101 additions and 90 deletions.
1 change: 1 addition & 0 deletions .github/workflows/TagBot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ jobs:
- uses: JuliaRegistries/TagBot@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
ssh: ${{ secrets.DOCUMENTER_KEY }}
54 changes: 54 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: CI
on:
push:
branches:
- master
- /^release-.*$/
pull_request:
types: [opened, synchronize, reopened]
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# Since JuMP doesn't have binary dependencies, only test on a subset of
# possible platforms.
include:
- version: '1'
os: ubuntu-latest
arch: x64
- version: '1.0'
os: ubuntu-latest
arch: x64
- version: '1.0'
os: ubuntu-latest
arch: x86
- version: '1'
os: windows-latest
arch: x64
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: actions/cache@v1
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
with:
depwarn: error
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
with:
file: lcov.info
23 changes: 23 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Documentation
on:
push:
branches: [master]
tags: '*'
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest
with:
# Build documentation on Julia 1.0
version: '1.0'
- name: Install dependencies
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key
run: julia --project=docs/ docs/make.jl
19 changes: 19 additions & 0 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Examples
on:
push:
branches: [master]
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest
with:
# Only test examples on Julia 1.0
version: '1.0'
- name: Install dependencies
run: julia --project=examples -e 'using Pkg; Pkg.instantiate(); Pkg.develop(PackageSpec(path=pwd()))'
- name: Run examples
run: julia --project=examples --color=yes examples/run_examples.jl
46 changes: 0 additions & 46 deletions .travis.yml

This file was deleted.

10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ JuMP makes it easy to specify and **solve optimization problems without expert k

Our documentation includes an installation guide, quick-start guide, and reference manual. The **[JuMPTutorials.jl]** repository contains a small but growing collection of contributed examples. Submissions are welcome!

[JuMPTutorials.jl]: https://github.com/JuliaOpt/JuMPTutorials.jl
[JuMPTutorials.jl]: https://github.com/jump-dev/JuMPTutorials.jl

**See [NEWS](https://github.com/jump-dev/JuMP.jl/tree/master/NEWS.md) for
a list of the significant breaking changes in the JuMP 0.19 release.**
Expand All @@ -60,17 +60,15 @@ a list of the significant breaking changes in the JuMP 0.19 release.**
* [Documentation](https://jump.dev/JuMP.jl/v0.21.5/)
* [Examples](https://github.com/jump-dev/JuMP.jl/tree/release-0.21/examples)
* Testing status:
* TravisCI: [![Build Status](https://travis-ci.com/jump-dev/JuMP.jl.svg?branch=release-0.21)](https://travis-ci.org/JuliaOpt/JuMP.jl)
* Github Actions: [![Build Status](https://github.com/jump-dev/JuMP.jl/workflows/CI/badge.svg?branch=release-0.21)](https://github.com/jump-dev/JuMP.jl/actions?query=workflow%3ACI)


**Development version** (`master` branch):
* [Documentation](https://jump.dev/JuMP.jl/dev/)
* [Examples](https://github.com/jump-dev/JuMP.jl/tree/master/examples)
* Testing status:
* TravisCI: [![Build Status](https://travis-ci.com/jump-dev/JuMP.jl.svg?branch=master)](https://travis-ci.org/JuliaOpt/JuMP.jl)
* Test coverage:
[![Coverage Status](https://coveralls.io/repos/jump-dev/JuMP.jl/badge.svg?branch=master)](https://coveralls.io/r/jump-dev/JuMP.jl?branch=master)
[![codecov](https://codecov.io/gh/jump-dev/JuMP.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/JuliaOpt/JuMP.jl)
* Github Actions: [![Build Status](https://github.com/jump-dev/JuMP.jl/workflows/CI/badge.svg?branch=master)](https://github.com/jump-dev/JuMP.jl/actions?query=workflow%3ACI)
* Test coverage: [![codecov](https://codecov.io/gh/jump-dev/JuMP.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/jump-dev/JuMP.jl)
* Changes: see [NEWS](https://github.com/jump-dev/JuMP.jl/tree/master/NEWS.md)
* [Developer chatroom](https://gitter.im/JuliaOpt/JuMP-dev)

Expand Down
38 changes: 0 additions & 38 deletions appveyor.yml

This file was deleted.

0 comments on commit af2355d

Please sign in to comment.