Skip to content

Commit c5909c8

Browse files
authored
[CI] use Github Actions and update test targets (#204)
* move CI workloads to Github Actions * remove windows 32bit and say goodbye to AppVeyor * test aarch64 for Julia 1.0, 1, and nightly in Travis * add linux 32bit for Julia 1 * caching artifacts dir in Travis
1 parent 3f12729 commit c5909c8

File tree

4 files changed

+77
-45
lines changed

4 files changed

+77
-45
lines changed

.github/workflows/UnitTest.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Unit test
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+
julia-arch: [x64]
22+
# only test one 32-bit job
23+
include:
24+
- os: ubuntu-latest
25+
julia-version: '1'
26+
julia-arch: x86
27+
28+
steps:
29+
- uses: actions/checkout@v2
30+
- name: "Set up Julia"
31+
uses: julia-actions/setup-julia@v1
32+
with:
33+
version: ${{ matrix.julia-version }}
34+
arch: ${{ matrix.julia-arch }}
35+
36+
- name: Cache artifacts
37+
uses: actions/cache@v1
38+
env:
39+
cache-name: cache-artifacts
40+
with:
41+
path: ~/.julia/artifacts
42+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
43+
restore-keys: |
44+
${{ runner.os }}-test-${{ env.cache-name }}-
45+
${{ runner.os }}-test-
46+
${{ runner.os }}-
47+
- name: "Unit Test"
48+
uses: julia-actions/julia-runtest@master
49+
50+
- uses: julia-actions/julia-processcoverage@v1
51+
- uses: codecov/codecov-action@v1
52+
with:
53+
file: lcov.info
54+
55+

.travis.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
language: julia
22
os:
33
- linux
4-
- osx
54
julia:
65
- 1.0
76
- 1
87
- nightly
8+
arch:
9+
- arm64
10+
cache:
11+
directories:
12+
- $HOME/.julia/artifacts
913
notifications:
1014
email: false
11-
12-
after_success:
13-
# push coverage results to Codecov
14-
- julia -e 'using Pkg; cd(Pkg.dir("FixedPointNumbers")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'
15+
codecov: true

README.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# FixedPointNumbers
22

3-
[![Build Status](https://travis-ci.org/JuliaMath/FixedPointNumbers.jl.svg?branch=master)](https://travis-ci.org/JuliaMath/FixedPointNumbers.jl)
4-
[![PkgEval](https://juliaci.github.io/NanosoldierReports/pkgeval_badges/F/FixedPointNumbers.svg)](https://juliaci.github.io/NanosoldierReports/pkgeval_badges/report.html)
5-
[![codecov.io](http://codecov.io/github/JuliaMath/FixedPointNumbers.jl/coverage.svg?branch=master)](http://codecov.io/github/JuliaMath/FixedPointNumbers.jl?branch=master)
3+
[![Build Status][action-img]][action-url]
4+
[![Build Status][pkgeval-img]][pkgeval-url]
5+
[![coverage][codecov-img]][codecov-url]
66

77
This library implements fixed-point number types. A
88
[fixed-point number] represents a fractional, or
@@ -142,3 +142,16 @@ Please see [CONTRIBUTING.md](CONTRIBUTING.md) for information about improving th
142142
[overflow]: https://en.wikipedia.org/wiki/Integer_overflow
143143
[rounding]: https://en.wikipedia.org/wiki/Round-off_error
144144
[underflow]: https://en.wikipedia.org/wiki/Arithmetic_underflow
145+
146+
147+
<!-- badges -->
148+
149+
[action-img]: https://github.com/JuliaMath/FixedPointNumbers.jl/workflows/Unit%20test/badge.svg
150+
[action-url]: https://github.com/JuliaMath/FixedPointNumbers.jl/actions
151+
152+
[pkgeval-img]: https://juliaci.github.io/NanosoldierReports/pkgeval_badges/F/FixedPointNumbers.svg
153+
[pkgeval-url]: https://juliaci.github.io/NanosoldierReports/pkgeval_badges/report.html
154+
155+
[codecov-img]: https://codecov.io/gh/JuliaMath/FixedPointNumbers.jl/branch/master/graph/badge.svg
156+
[codecov-url]: https://codecov.io/gh/JuliaMath/FixedPointNumbers.jl
157+

appveyor.yml

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

0 commit comments

Comments
 (0)