Skip to content

Commit 617ef5c

Browse files
authored
Switch to GitHub Actions (#48)
This Switches from Travis-CI to GitHub Actions due to the recent changes to Travis-CI that remove OSS runs. New deploy key and secret key have already been added to the repository. TagBot is also updated to the latest version, see https://github.com/JuliaRegistries/TagBot See https://blog.travis-ci.com/2020-11-02-travis-ci-new-billing
1 parent f97f22b commit 617ef5c

File tree

5 files changed

+81
-32
lines changed

5 files changed

+81
-32
lines changed

.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 }}

.github/workflows/ci.yml

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

.github/workflows/documentation.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Documentation
2+
on:
3+
push:
4+
branches: [master]
5+
tags: '*'
6+
pull_request:
7+
types: [opened, synchronize, reopened]
8+
jobs:
9+
docs:
10+
if: "!contains(github.event.head_commit.message, 'skip ci')"
11+
name: Documentation
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: julia-actions/setup-julia@latest
16+
with:
17+
version: '1'
18+
- name: Install Dependencies
19+
run: julia --project=docs -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
20+
- name: Build and Deploy
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
24+
run: julia --project=docs docs/make.jl

.travis.yml

-20
This file was deleted.

README.md

+5-10
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
# PowerModelsRestoration.jl
22

3-
Release: [![](https://img.shields.io/badge/docs-stable-blue.svg)](https://lanl-ansi.github.io/PowerModelsRestoration.jl/stable/)
4-
5-
Dev:
6-
[![Build Status](https://travis-ci.org/lanl-ansi/PowerModelsRestoration.jl.svg?branch=master)](https://travis-ci.org/lanl-ansi/PowerModelsRestoration.jl)
7-
[![codecov](https://codecov.io/gh/lanl-ansi/PowerModelsRestoration.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/lanl-ansi/PowerModelsRestoration.jl)
8-
[![](https://img.shields.io/badge/docs-dev-blue.svg)](https://lanl-ansi.github.io/PowerModelsRestoration.jl/dev/)
3+
![CI](https://github.com/lanl-ansi/PowerModelsRestoration.jl/workflows/CI/badge.svg) ![Documentation](https://github.com/lanl-ansi/PowerModelsRestoration.jl/workflows/Documentation/badge.svg)
94

105
A PowerModelsRestoration provides extensions to [PowerModels](https://github.com/lanl-ansi/PowerModels.jl) for solving the power system restoration tasks. A core building block in PowerModelsRestoration is the Maximum Load Delivery (MLD) problem, which provides a reliable numerical method for solving challenging N-k damage scenarios, such as those that arise in the analysis of extreme events.
116

@@ -39,10 +34,10 @@ If you find the PowerModelsRestoration package useful in your work, we request t
3934

4035
In addition, if the MLD problem from PowerModelsRestoration useful in your work, we kindly request that you cite the following [publication](https://ieeexplore.ieee.org/document/8494809):
4136
```
42-
@article{8494809,
43-
author={Carleton Coffrin and Russel Bent and Byron Tasseff and Kaarthik Sundar and Scott Backhaus},
44-
title={Relaxations of AC Maximal Load Delivery for Severe Contingency Analysis},
45-
journal={IEEE Transactions on Power Systems},
37+
@article{8494809,
38+
author={Carleton Coffrin and Russel Bent and Byron Tasseff and Kaarthik Sundar and Scott Backhaus},
39+
title={Relaxations of AC Maximal Load Delivery for Severe Contingency Analysis},
40+
journal={IEEE Transactions on Power Systems},
4641
volume={34}, number={2}, pages={1450-1458},
4742
month={March}, year={2019},
4843
doi={10.1109/TPWRS.2018.2876507}, ISSN={0885-8950}

0 commit comments

Comments
 (0)