Skip to content

Commit fc03fc0

Browse files
authored
Setup CI (#1)
1 parent 9aabfcc commit fc03fc0

File tree

3 files changed

+72
-2
lines changed

3 files changed

+72
-2
lines changed

.github/workflows/ci.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags: '*'
8+
pull_request:
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
julia-version:
16+
- '1'
17+
- 'nightly'
18+
nthreads:
19+
- '1'
20+
- '2'
21+
- '8'
22+
fail-fast: false
23+
name: Test Julia ${{ matrix.julia-version }} nthreads=${{ matrix.nthreads }}
24+
steps:
25+
- uses: actions/checkout@v2
26+
- uses: julia-actions/setup-julia@v1
27+
with:
28+
version: ${{ matrix.julia-version }}
29+
- uses: julia-actions/julia-runtest@v1
30+
env:
31+
JULIA_NUM_THREADS: ${{ matrix.nthreads }}
32+
- uses: julia-actions/julia-processcoverage@v1
33+
- uses: codecov/codecov-action@v2
34+
with:
35+
file: ./lcov.info
36+
flags: Pkg.test
37+
name: codecov-umbrella
38+
39+
aqua:
40+
runs-on: ubuntu-latest
41+
strategy:
42+
matrix:
43+
julia-version:
44+
- '1'
45+
- 'nightly'
46+
fail-fast: false
47+
steps:
48+
- uses: actions/checkout@v2
49+
- uses: julia-actions/setup-julia@v1
50+
with:
51+
version: ${{ matrix.julia-version }}
52+
- uses: tkf/julia-aqua@v1
53+
54+
# https://github.com/tkf/julia-code-style-suggesters
55+
code-style:
56+
if: always() && github.event.pull_request
57+
runs-on: ubuntu-latest
58+
steps:
59+
- uses: tkf/julia-code-style-suggesters@v1
60+
61+
# A job that succeeds if and only if all jobs succeed.
62+
all-success:
63+
if: always() && github.event.pull_request
64+
needs: [test, aqua, code-style]
65+
runs-on: ubuntu-latest
66+
steps:
67+
# https://github.com/tkf/merge-conclusions-action
68+
- uses: tkf/merge-conclusions-action@v1
69+
with:
70+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ authors = ["Takafumi Arakaki <[email protected]> and contributors"]
44
version = "0.1.0-DEV"
55

66
[compat]
7-
julia = "1.6"
7+
julia = "1.7"

test/LeftRightTests/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ LeftRight = "78a604cf-3861-458a-9dc0-49592e8d97d7"
99
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1010

1111
[compat]
12-
julia = "1.6"
12+
julia = "1.7"

0 commit comments

Comments
 (0)