Skip to content

Commit 3a30055

Browse files
authored
use github CI (#32)
1 parent d528427 commit 3a30055

File tree

3 files changed

+73
-12
lines changed

3 files changed

+73
-12
lines changed

.github/workflows/CI.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: CI
2+
# Run on main, tags, or any pull request
3+
on:
4+
schedule:
5+
- cron: '0 2 * * *' # Daily at 2 AM UTC (8 PM CST)
6+
push:
7+
branches: [main]
8+
tags: ["*"]
9+
pull_request:
10+
concurrency:
11+
# Skip intermediate builds: always.
12+
# Cancel intermediate builds: only if it is a pull request build.
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
15+
jobs:
16+
test:
17+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
18+
runs-on: ${{ matrix.os }}
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
version:
23+
- "1.0" # LTS
24+
- "1" # Latest Release
25+
os:
26+
- ubuntu-latest
27+
- macOS-latest
28+
- windows-latest
29+
arch:
30+
- x64
31+
- x86
32+
exclude:
33+
# Test 32-bit only on Linux
34+
- os: macOS-latest
35+
arch: x86
36+
- os: windows-latest
37+
arch: x86
38+
include:
39+
# Add specific version used to run the reference tests.
40+
# Must be kept in sync with version check in `test/runtests.jl`,
41+
# and with the branch protection rules on the repository which
42+
# require this specific job to pass on all PRs
43+
# (see Settings > Branches > Branch protection rules).
44+
- os: ubuntu-latest
45+
version: 1.7.2
46+
arch: x64
47+
steps:
48+
- uses: actions/checkout@v2
49+
- uses: julia-actions/setup-julia@v1
50+
with:
51+
version: ${{ matrix.version }}
52+
arch: ${{ matrix.arch }}
53+
- uses: actions/cache@v2
54+
env:
55+
cache-name: cache-artifacts
56+
with:
57+
path: ~/.julia/artifacts
58+
key: ${{ runner.os }}-${{ matrix.arch }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
59+
restore-keys: |
60+
${{ runner.os }}-${{ matrix.arch }}-test-${{ env.cache-name }}-
61+
${{ runner.os }}-${{ matrix.arch }}-test-
62+
${{ runner.os }}-${{ matrix.arch }}-
63+
${{ runner.os }}-
64+
- uses: julia-actions/julia-buildpkg@latest
65+
- run: |
66+
git config --global user.name Tester
67+
git config --global user.email te@st.er
68+
- uses: julia-actions/julia-runtest@latest
69+
- uses: julia-actions/julia-processcoverage@v1
70+
- uses: codecov/codecov-action@v2
71+
with:
72+
files: lcov.info

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# The Sobol module for Julia
2-
[![Build Status](https://travis-ci.org/stevengj/Sobol.jl.png)](https://travis-ci.org/stevengj/Sobol.jl)
2+
[![CI](https://github.com/JuliaMath/Sobol.jl/workflows/CI/badge.svg)](https://github.com/JuliaMath/Sobol.jl/actions?query=workflow%3ACI)
33

44
This module provides a free [Julia-language](http://julialang.org/)
55
[Sobol low-discrepancy-sequence

0 commit comments

Comments
 (0)