Skip to content

Commit 4cd3593

Browse files
authored
github actions (#11)
* gh actions * remove travis * osx and x86 * reduce number of configs
1 parent e2318c7 commit 4cd3593

File tree

5 files changed

+84
-26
lines changed

5 files changed

+84
-26
lines changed

.github/workflows/CompatHelper.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: CompatHelper
2+
on:
3+
schedule:
4+
- cron: 0 0 * * *
5+
workflow_dispatch:
6+
jobs:
7+
CompatHelper:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Pkg.add("CompatHelper")
11+
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
12+
- name: CompatHelper.main()
13+
env:
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15+
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
16+
run: julia -e 'using CompatHelper; CompatHelper.main()'

.github/workflows/TagBot.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: TagBot
2+
on:
3+
issue_comment:
4+
types:
5+
- created
6+
workflow_dispatch:
7+
jobs:
8+
TagBot:
9+
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: JuliaRegistries/TagBot@v1
13+
with:
14+
token: ${{ secrets.GITHUB_TOKEN }}
15+
ssh: ${{ secrets.DOCUMENTER_KEY }}

.github/workflows/ci.yml

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

.travis.yml

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

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# MatrixOptInterface.jl
22

3+
[![Build Status](https://github.com/jump-dev/MatrixOptInterface.jl/workflows/CI/badge.svg)](https://github.com/jump-dev/MatrixOptInterface.jl/actions)
4+
[![Coverage](https://codecov.io/gh/jump-dev/MatrixOptInterface.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/jump-dev/MatrixOptInterface.jl)
5+
36
**This package is this in early development, feedback is welcome!**
47

58
An interface for optimization problems in matrix forms.
@@ -76,7 +79,7 @@ where `senses` is a vector whose `i`th entry is either
7679

7780
## Transition from linprog
7881

79-
If you are used to [`MathProgBase`](https://github.com/JuliaOpt/MathProgBase.jl)'s or MATLAB's `linprog` function, this package provides an easy transition.
82+
If you are used to [`MathProgBase`](https://github.com/JuliaOpt/MathProgBase.jl)'s, MATLAB's or scipy's `linprog` function, this package provides an easy transition.
8083
The package does not provide a one-shot function that takes the form as input are returns the solution and status as
8184
in general, solvers may have multiple solutions to report and the status cannot be summarized in a single value.
8285
`MathOptInterface` embraces this complexity and allows to retrieve multiple solutions,

0 commit comments

Comments
 (0)