Skip to content

Commit f3832a2

Browse files
committed
update CI configs
switch from travis to Github Action
1 parent e6fdfb2 commit f3832a2

File tree

5 files changed

+77
-29
lines changed

5 files changed

+77
-29
lines changed

.github/workflows/CI.yml

+44
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@v2
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

.github/workflows/CompatHelper.yml

+16-7
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,25 @@
11
name: CompatHelper
2-
32
on:
43
schedule:
5-
- cron: '00 00 * * *'
6-
4+
- cron: 0 0 * * *
5+
workflow_dispatch:
76
jobs:
87
CompatHelper:
98
runs-on: ubuntu-latest
109
steps:
11-
- name: Pkg.add("CompatHelper")
12-
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
13-
- 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}
1423
env:
1524
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16-
run: julia -e 'using CompatHelper; CompatHelper.main()'
25+
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}

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

.travis.yml

-17
This file was deleted.

README.md

+11-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# QuartzImageIO
22

3-
[![Build Status](https://travis-ci.org/JuliaIO/QuartzImageIO.jl.svg?branch=master)](https://travis-ci.org/JuliaIO/QuartzImageIO.jl)
4-
[![codecov](https://codecov.io/gh/JuliaIO/QuartzImageIO.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/JuliaIO/QuartzImageIO.jl)
3+
[![CI][action-img]][action-url]
4+
[![PkgEval][pkgeval-img]][pkgeval-url]
5+
[![Code coverage][codecov-img]][codecov-url]
56

67
This package provides support for loading and saving images using
78
native libraries on macOS. This package was split off from
@@ -34,5 +35,12 @@ It's worth pointing out that packages such as Images load FileIO.
3435

3536
If QuartzImageIO does not provide the functionality you need, an
3637
alternative is
37-
[ImageMagick](https://github.com/JuliaIO/ImageMagick.jl). You can have
38+
[ImageMagick](https://github.com/JuliaIO/ImageMagick.jl) and [ImageIO](https://github.com/JuliaIO/ImageIO.jl). You can have
3839
both packages installed, and FileIO will manage their interaction.
40+
41+
[pkgeval-img]: https://juliaci.github.io/NanosoldierReports/pkgeval_badges/Q/QuartzImageIO.svg
42+
[pkgeval-url]: https://juliaci.github.io/NanosoldierReports/pkgeval_badges/report.html
43+
[action-img]: https://github.com/JuliaIO/QuartzImageIO.jl/actions/workflows/ci.yml/badge.svg
44+
[action-url]: https://github.com/JuliaIO/QuartzImageIO.jl/actions/workflows/ci.yml
45+
[codecov-img]: https://codecov.io/gh/JuliaIO/QuartzImageIO.jl/branch/master/graph/badge.svg
46+
[codecov-url]: https://codecov.io/gh/JuliaIO/QuartzImageIO.jl

0 commit comments

Comments
 (0)