Skip to content

Commit 2872cb2

Browse files
committed
Add Github actions
1 parent 560becd commit 2872cb2

File tree

4 files changed

+107
-0
lines changed

4 files changed

+107
-0
lines changed

.github/workflows/CI.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
test:
11+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
version:
17+
- '1.0'
18+
- '1'
19+
- 'nightly'
20+
os:
21+
- ubuntu-latest
22+
arch:
23+
- x64
24+
include:
25+
- version: '1'
26+
os: ubuntu-latest
27+
arch: x64
28+
coverage: true
29+
steps:
30+
- uses: actions/checkout@v2
31+
- uses: julia-actions/setup-julia@v1
32+
with:
33+
version: ${{ matrix.version }}
34+
arch: ${{ matrix.arch }}
35+
- uses: actions/cache@v1
36+
env:
37+
cache-name: cache-artifacts
38+
with:
39+
path: ~/.julia/artifacts
40+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
41+
restore-keys: |
42+
${{ runner.os }}-test-${{ env.cache-name }}-
43+
${{ runner.os }}-test-
44+
${{ runner.os }}-
45+
- uses: julia-actions/julia-buildpkg@v1
46+
- uses: julia-actions/julia-runtest@v1
47+
with:
48+
coverage: ${{ matrix.coverage || false }}
49+
- uses: julia-actions/julia-processcoverage@v1
50+
if: matrix.coverage
51+
- uses: codecov/codecov-action@v1
52+
if: matrix.coverage
53+
with:
54+
file: lcov.info
55+
- uses: coverallsapp/github-action@master
56+
if: matrix.coverage
57+
with:
58+
github-token: ${{ secrets.GITHUB_TOKEN }}
59+
path-to-lcov: ./lcov.info

.github/workflows/CompatHelper.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CompatHelper
2+
3+
on:
4+
schedule:
5+
- cron: 0 0 * * *
6+
workflow_dispatch:
7+
8+
jobs:
9+
CompatHelper:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: "Install CompatHelper"
13+
run: |
14+
import Pkg
15+
name = "CompatHelper"
16+
uuid = "aa819f21-2bde-4658-8897-bab36330d9b7"
17+
version = "2"
18+
Pkg.add(; name, uuid, version)
19+
shell: julia --color=yes {0}
20+
- name: "Run CompatHelper"
21+
run: |
22+
import CompatHelper
23+
CompatHelper.main()
24+
shell: julia --color=yes {0}
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}

.github/workflows/TagBot.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: TagBot
2+
3+
on:
4+
issue_comment:
5+
types:
6+
- created
7+
workflow_dispatch:
8+
9+
jobs:
10+
TagBot:
11+
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: JuliaRegistries/TagBot@v1
15+
with:
16+
token: ${{ secrets.GITHUB_TOKEN }}
17+
ssh: ${{ secrets.DOCUMENTER_KEY }}

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# IrrationalConstants.jl
22

3+
[![Build Status](https://github.com/JuliaMath/IrrationalConstants.jl/workflows/CI/badge.svg?branch=main)](https://github.com/JuliaMath/IrrationalConstants.jl/actions/workflows/CI.yml?query=branch%3Amain)
4+
[![Coverage](https://codecov.io/gh/JuliaMath/IrrationalConstants.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/JuliaMath/IrrationalConstants.jl)
5+
[![Coverage](https://coveralls.io/repos/github/JuliaMath/IrrationalConstants.jl/badge.svg?branch=main)](https://coveralls.io/github/JuliaMath/IrrationalConstants.jl?branch=main)
6+
37
This package defines the following irrational constants:
48

59
```julia

0 commit comments

Comments
 (0)