Skip to content

Commit 30b2a52

Browse files
committed
Overhaul CI and update packaging
1 parent e6bc761 commit 30b2a52

File tree

13 files changed

+414
-92
lines changed

13 files changed

+414
-92
lines changed

.github/workflows/CI.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- main
6+
tags: ['*']
7+
pull_request:
8+
workflow_dispatch:
9+
concurrency:
10+
# Skip intermediate builds: always.
11+
# Cancel intermediate builds: only if it is a pull request build.
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
14+
jobs:
15+
test:
16+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
17+
runs-on: ${{ matrix.os }}
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
version:
22+
- '1.0'
23+
- '1.9'
24+
- 'nightly'
25+
os:
26+
- ubuntu-latest
27+
arch:
28+
- x64
29+
steps:
30+
- uses: actions/checkout@v4
31+
- uses: julia-actions/setup-julia@v1
32+
with:
33+
version: ${{ matrix.version }}
34+
arch: ${{ matrix.arch }}
35+
- uses: julia-actions/cache@v1
36+
- uses: julia-actions/julia-buildpkg@v1
37+
- uses: julia-actions/julia-runtest@v1
38+
- uses: julia-actions/julia-processcoverage@v1
39+
- uses: codecov/codecov-action@v3
40+
with:
41+
files: lcov.info
42+
docs:
43+
name: Documentation
44+
runs-on: ubuntu-latest
45+
permissions:
46+
contents: write
47+
statuses: write
48+
steps:
49+
- uses: actions/checkout@v4
50+
- uses: julia-actions/setup-julia@v1
51+
with:
52+
version: '1'
53+
- name: Configure doc environment
54+
shell: julia --project=docs --color=yes {0}
55+
run: |
56+
using Pkg
57+
Pkg.develop(PackageSpec(path=pwd()))
58+
Pkg.instantiate()
59+
- uses: julia-actions/julia-buildpkg@v1
60+
- uses: julia-actions/julia-docdeploy@v1
61+
env:
62+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
63+
- name: Run doctests
64+
shell: julia --project=docs --color=yes {0}
65+
run: |
66+
using Documenter: DocMeta, doctest
67+
using FresnelIntegrals
68+
DocMeta.setdocmeta!(FresnelIntegrals, :DocTestSetup, :(using FresnelIntegrals); recursive=true)
69+
doctest(FresnelIntegrals)

.github/workflows/CompatHelper.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: CompatHelper
2+
on:
3+
schedule:
4+
- cron: 0 0 * * *
5+
workflow_dispatch:
6+
jobs:
7+
CompatHelper:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Pkg.add("CompatHelper")
11+
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
12+
- name: CompatHelper.main()
13+
env:
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15+
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
16+
run: julia -e 'using CompatHelper; CompatHelper.main()'

.github/workflows/Register.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Register Package
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
version:
6+
description: Version to register or component to bump
7+
required: true
8+
jobs:
9+
register:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
steps:
14+
- uses: julia-actions/RegisterAction@latest
15+
with:
16+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/TagBot.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,31 @@
11
name: TagBot
22
on:
3-
schedule:
4-
- cron: 0 * * * *
3+
issue_comment:
4+
types:
5+
- created
6+
workflow_dispatch:
7+
inputs:
8+
lookback:
9+
default: 3
10+
permissions:
11+
actions: read
12+
checks: read
13+
contents: write
14+
deployments: read
15+
issues: read
16+
discussions: read
17+
packages: read
18+
pages: read
19+
pull-requests: read
20+
repository-projects: read
21+
security-events: read
22+
statuses: read
523
jobs:
624
TagBot:
25+
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
726
runs-on: ubuntu-latest
827
steps:
928
- uses: JuliaRegistries/TagBot@v1
1029
with:
1130
token: ${{ secrets.GITHUB_TOKEN }}
31+
ssh: ${{ secrets.DOCUMENTER_KEY }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66
/dev/
77
/docs/build/
88
/docs/site/
9+
.vscode

.travis.yml

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

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "FresnelIntegrals"
22
uuid = "88497964-e39a-11e9-0fb5-b1bf0ffe80fe"
3-
authors = ["Kiran Shila\n <[email protected]>"]
4-
version = "0.1.0"
3+
authors = ["Kiran Shila <[email protected]> and contributors"]
4+
version = "0.2.0"
55

66
[deps]
77
IrrationalConstants = "92d709cd-6900-40b7-9082-c6be49f344b6"

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# FresnelIntegrals.jl
22

3-
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://kiranshila.github.io/FresnelIntegrals.jl/dev)
4-
[![Build Status](https://travis-ci.com/kiranshila/FresnelIntegrals.jl.svg?branch=master)](https://travis-ci.com/kiranshila/FresnelIntegrals.jl)
5-
[![Codecov](https://codecov.io/gh/kiranshila/FresnelIntegrals.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/kiranshila/FresnelIntegrals.jl)
3+
[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://kshila.github.io/FresnelIntegrals.jl/stable/)
4+
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://kshila.github.io/FresnelIntegrals.jl/dev/)
5+
[![Build Status](https://github.com/kshila/FresnelIntegrals.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/kshila/FresnelIntegrals.jl/actions/workflows/CI.yml?query=branch%3Amain)
6+
[![Coverage](https://codecov.io/gh/kshila/FresnelIntegrals.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/kshila/FresnelIntegrals.jl)
67

78
A quick Julia library for calculating Fresnel Integrals using the error function from [SpecialFunctions.jl](https://github.com/JuliaMath/SpecialFunctions.jl).
89

0 commit comments

Comments
 (0)