Skip to content

Commit 838e25a

Browse files
authored
Update CI (#2)
1 parent 1fac831 commit 838e25a

6 files changed

Lines changed: 40 additions & 40 deletions

File tree

.github/workflows/CompatHelper.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
name: CompatHelper
22
on:
33
schedule:
4-
- cron: 0 0 * * *
4+
- cron: '00 00 * * *'
5+
workflow_dispatch:
56
jobs:
6-
build:
7+
CompatHelper:
78
runs-on: ubuntu-latest
89
steps:
910
- name: Pkg.add("CompatHelper")
1011
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
1112
- name: CompatHelper.main()
12-
run: julia -e 'using CompatHelper; CompatHelper.main()'
1313
env:
1414
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15+
COMPATHELPER_PRIV: ${{ secrets.COMPATHELPER_PRIV }}
16+
run: julia -e 'using CompatHelper; CompatHelper.main()'

.github/workflows/TagBot.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
name: TagBot
22
on:
3-
schedule:
4-
- cron: 0 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

.github/workflows/ci.yml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,28 @@ jobs:
1010
test:
1111
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
1212
runs-on: ${{ matrix.os }}
13+
continue-on-error: ${{ matrix.version == 'nightly' }}
1314
strategy:
1415
matrix:
1516
version:
1617
- '1.0'
1718
- '1'
1819
- 'nightly'
1920
os:
21+
- ubuntu-latest
22+
- macOS-latest
2023
- windows-latest
2124
arch:
2225
- x86
2326
- x64
27+
include:
28+
- version: '1'
29+
os: ubuntu-latest
30+
arch: x64
31+
coverage: true
32+
exclude:
33+
- os: macOS-latest
34+
arch: x86
2435
steps:
2536
- uses: actions/checkout@v2
2637
- uses: julia-actions/setup-julia@v1
@@ -37,5 +48,16 @@ jobs:
3748
${{ runner.os }}-test-${{ env.cache-name }}-
3849
${{ runner.os }}-test-
3950
${{ runner.os }}-
40-
- uses: julia-actions/julia-buildpkg@latest
41-
- uses: julia-actions/julia-runtest@latest
51+
- uses: julia-actions/julia-buildpkg@v1
52+
- uses: julia-actions/julia-runtest@v1
53+
- uses: julia-actions/julia-processcoverage@v1
54+
if: matrix.coverage
55+
- uses: codecov/codecov-action@v1
56+
if: matrix.coverage
57+
with:
58+
file: lcov.info
59+
- uses: coverallsapp/github-action@master
60+
if: matrix.coverage
61+
with:
62+
github-token: ${{ secrets.GITHUB_TOKEN }}
63+
path-to-lcov: lcov.info

.travis.yml

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

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# PalmerPenguins.jl <a href='https://allisonhorst.github.io/palmerpenguins'><img src='https://allisonhorst.github.io/palmerpenguins/reference/figures/logo.png' align="right" height="138.5" /></a>
22

3-
[![Build Status](https://github.com/devmotion/PalmerPenguins.jl/workflows/CI/badge.svg)](https://github.com/devmotion/PalmerPenguins.jl/actions)
4-
[![Build Status](https://travis-ci.com/devmotion/PalmerPenguins.jl.svg?branch=master)](https://travis-ci.com/devmotion/PalmerPenguins.jl)
3+
[![Build Status](https://github.com/devmotion/PalmerPenguins.jl/workflows/CI/badge.svg)](https://github.com/devmotion/PalmerPenguins.jl/actions?query=workflow%3ACI+branch%3Amaster)
54
[![Coverage](https://codecov.io/gh/devmotion/PalmerPenguins.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/devmotion/PalmerPenguins.jl)
65
[![Coverage](https://coveralls.io/repos/github/devmotion/PalmerPenguins.jl/badge.svg?branch=master)](https://coveralls.io/github/devmotion/PalmerPenguins.jl?branch=master)
76

@@ -51,7 +50,7 @@ by executing
5150
```julia
5251
julia> using DataFrames
5352

54-
julia> df = DataFrame(table; copycols = false) # or: df = DataFrame!(table)
53+
julia> df = DataFrame(table)
5554
```
5655

5756
The raw data can be loaded with
@@ -64,4 +63,4 @@ If `raw = false` (the default), then the simplified version is returned.
6463

6564
Gorman KB, Williams TD, Fraser WR (2014) Ecological Sexual Dimorphism and Environmental
6665
Variability within a Community of Antarctic Penguins (Genus Pygoscelis). PLoS ONE 9(3):
67-
e90081. https://doi.org/10.1371/journal.pone.0090081
66+
e90081. https://doi.org/10.1371/journal.pone.0090081

test/runtests.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ ENV["DATADEPS_ALWAYS_ACCEPT"] = true
140140

141141
@testset "DataFrames" begin
142142
@testset "simplified" begin
143-
df = DataFrame!(PalmerPenguins.load())
144-
df2 = DataFrame!(PalmerPenguins.load(; raw = false))
143+
df = DataFrame(PalmerPenguins.load())
144+
df2 = DataFrame(PalmerPenguins.load(; raw = false))
145145
for i in 1:size(df, 2)
146146
@test all(df[!, i] .=== df2[!, i])
147147
end
@@ -162,7 +162,7 @@ ENV["DATADEPS_ALWAYS_ACCEPT"] = true
162162
end
163163

164164
@testset "raw" begin
165-
df = DataFrame!(PalmerPenguins.load(; raw = true))
165+
df = DataFrame(PalmerPenguins.load(; raw = true))
166166

167167
# Check some properties
168168
@test df isa DataFrame

0 commit comments

Comments
 (0)