Skip to content
This repository was archived by the owner on May 21, 2022. It is now read-only.

Commit 2553bdf

Browse files
authored
[maintenance] CI and compat update (#65)
* [maintenance] update CI configurations travis is deprecated in favor of Github Actions * [compat] add DataFrames 1
1 parent de483ec commit 2553bdf

File tree

6 files changed

+78
-46
lines changed

6 files changed

+78
-46
lines changed

.github/workflows/CompatHelper.yml

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,25 @@
11
name: CompatHelper
2-
32
on:
43
schedule:
5-
- cron: '20 00 * * *'
6-
issues:
7-
types: [opened, reopened]
8-
4+
- cron: 0 0 * * *
5+
workflow_dispatch:
96
jobs:
10-
build:
11-
runs-on: ${{ matrix.os }}
12-
strategy:
13-
matrix:
14-
julia-version: ["1"]
15-
julia-arch: [x86]
16-
os: [ubuntu-latest]
7+
CompatHelper:
8+
runs-on: ubuntu-latest
179
steps:
18-
- uses: julia-actions/setup-julia@latest
19-
with:
20-
version: ${{ matrix.julia-version }}
21-
- name: Pkg.add("CompatHelper")
22-
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
23-
- name: CompatHelper.main()
10+
- name: "Install CompatHelper"
11+
run: |
12+
import Pkg
13+
name = "CompatHelper"
14+
uuid = "aa819f21-2bde-4658-8897-bab36330d9b7"
15+
version = "2"
16+
Pkg.add(; name, uuid, version)
17+
shell: julia --color=yes {0}
18+
- name: "Run CompatHelper"
19+
run: |
20+
import CompatHelper
21+
CompatHelper.main()
22+
shell: julia --color=yes {0}
2423
env:
2524
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26-
run: julia -e 'using CompatHelper; CompatHelper.main()'
25+
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}

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

.github/workflows/ci.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: CI
2+
3+
on:
4+
create:
5+
tags:
6+
push:
7+
branches:
8+
- master
9+
pull_request:
10+
schedule:
11+
- cron: '20 00 1 * *'
12+
13+
jobs:
14+
test:
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
julia-version: ['1.0', '1', 'nightly']
20+
os: [ubuntu-latest, windows-latest, macOS-latest]
21+
22+
steps:
23+
- uses: actions/checkout@v1.0.0
24+
- name: "Set up Julia"
25+
uses: julia-actions/setup-julia@v1
26+
with:
27+
version: ${{ matrix.julia-version }}
28+
- name: Cache artifacts
29+
uses: actions/cache@v1
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+
- name: "Unit Test"
40+
uses: julia-actions/julia-runtest@master
41+
- uses: julia-actions/julia-processcoverage@v1
42+
- uses: codecov/codecov-action@v1
43+
with:
44+
file: lcov.info

.travis.yml

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

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
1313
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
1414

1515
[compat]
16-
DataFrames = "0.19, 0.20, 0.21, 0.22"
16+
DataFrames = "0.19, 0.20, 0.21, 0.22, 1"
1717
LearnBase = "0.2, 0.3"
1818
MLDataPattern = "0.5"
1919
MLLabelUtils = "0.4, 0.5"

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ packages.*
77

88
| **Package Status** | **Package Evaluator** | **Build Status** |
99
|:------------------:|:---------------------:|:-----------------:|
10-
| [![License](http://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat)](LICENSE.md) [![Documentation Status](https://img.shields.io/badge/docs-latest-blue.svg?style=flat)](http://mldatautilsjl.readthedocs.io/en/latest/?badge=latest) | [![PkgEval][pkgeval-img]][pkgeval-url] | [![Build Status](https://travis-ci.org/JuliaML/MLDataUtils.jl.svg?branch=master)](https://travis-ci.org/JuliaML/MLDataUtils.jl) [![Coverage Status](https://coveralls.io/repos/github/JuliaML/MLDataUtils.jl/badge.svg?branch=master)](https://coveralls.io/github/JuliaML/MLDataUtils.jl?branch=master) |
10+
| [![License][license-img]][license-url] [![Documentation Status][docs-dev-img]][docs-dev-url] | [![PkgEval][pkgeval-img]][pkgeval-url] | [![CI][github-action-img]][github-action-url] [![Coverage Status][coveralls-img]][coveralls-url] |
1111

1212
## Overview
1313

@@ -290,3 +290,11 @@ This code is free to use under the terms of the MIT license
290290

291291
[pkgeval-img]: https://juliaci.github.io/NanosoldierReports/pkgeval_badges/M/MLDataUtils.svg
292292
[pkgeval-url]: https://juliaci.github.io/NanosoldierReports/pkgeval_badges/report.html
293+
[license-img]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat
294+
[license-url]: LICENSE.md
295+
[github-action-img]: https://github.com/JuliaML/MLDataUtils.jl/actions/workflows/CI.yml/badge.svg
296+
[github-action-url]: https://github.com/JuliaML/MLDataUtils.jl/actions/workflows/CI.yml
297+
[coveralls-img]: https://coveralls.io/repos/JuliaML/MLDataUtils.jl/badge.svg?branch=master&service=github
298+
[coveralls-url]: https://coveralls.io/github/JuliaML/MLDataUtils.jl?branch=master
299+
[docs-dev-img]: https://img.shields.io/badge/docs-latest-blue.svg?style=flat
300+
[docs-dev-url]: https://mldatautilsjl.readthedocs.io/en/latest

0 commit comments

Comments
 (0)