Skip to content

Commit 5a434e1

Browse files
authored
Merge pull request #73 from byuflowlab/master
update Weston branch
2 parents 5a426d9 + c5a4256 commit 5a434e1

File tree

6 files changed

+66
-101
lines changed

6 files changed

+66
-101
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+
on:
3+
push:
4+
branches:
5+
- main
6+
tags: '*'
7+
pull_request:
8+
concurrency:
9+
# Skip intermediate builds: always.
10+
# Cancel intermediate builds: only if it is a pull request build.
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
13+
jobs:
14+
test:
15+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
16+
runs-on: ${{ matrix.os }}
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
version:
21+
- '1.10'
22+
- '1.11'
23+
os:
24+
- ubuntu-latest
25+
arch:
26+
- x64
27+
# - x86
28+
steps:
29+
- uses: actions/checkout@v2
30+
- uses: julia-actions/setup-julia@v1
31+
with:
32+
version: ${{ matrix.version }}
33+
arch: ${{ matrix.arch }}
34+
- uses: julia-actions/cache@v1
35+
- uses: julia-actions/julia-buildpkg@v1
36+
- uses: julia-actions/julia-runtest@v1
37+
- uses: julia-actions/julia-processcoverage@v1
38+
- uses: codecov/codecov-action@v2
39+
with:
40+
files: lcov.info
41+
docs:
42+
name: Documentation
43+
runs-on: ubuntu-latest
44+
steps:
45+
- uses: actions/checkout@v2
46+
- uses: julia-actions/setup-julia@v1
47+
with:
48+
version: '1.11'
49+
- uses: julia-actions/julia-buildpkg@v1
50+
- uses: julia-actions/julia-docdeploy@v1
51+
env:
52+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
54+
- run: |
55+
julia --project=docs -e '
56+
using Documenter: DocMeta, doctest
57+
using FLOWFarm
58+
DocMeta.setdocmeta!(FLOWFarm, :DocTestSetup, :(using FLOWFarm); recursive=true)
59+
doctest(FLOWFarm)'

.github/workflows/CompatHelper.yml

Lines changed: 4 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -3,43 +3,14 @@ on:
33
schedule:
44
- cron: 0 0 * * *
55
workflow_dispatch:
6-
permissions:
7-
contents: write
8-
pull-requests: write
96
jobs:
107
CompatHelper:
118
runs-on: ubuntu-latest
129
steps:
13-
- name: Check if Julia is already available in the PATH
14-
id: julia_in_path
15-
run: which julia
16-
continue-on-error: true
17-
- name: Install Julia, but only if it is not already available in the PATH
18-
uses: julia-actions/setup-julia@v1
19-
with:
20-
version: '1'
21-
arch: ${{ runner.arch }}
22-
if: steps.julia_in_path.outcome != 'success'
23-
- name: "Add the General registry via Git"
24-
run: |
25-
import Pkg
26-
ENV["JULIA_PKG_SERVER"] = ""
27-
Pkg.Registry.add("General")
28-
shell: julia --color=yes {0}
29-
- name: "Install CompatHelper"
30-
run: |
31-
import Pkg
32-
name = "CompatHelper"
33-
uuid = "aa819f21-2bde-4658-8897-bab36330d9b7"
34-
version = "3"
35-
Pkg.add(; name, uuid, version)
36-
shell: julia --color=yes {0}
37-
- name: "Run CompatHelper"
38-
run: |
39-
import CompatHelper
40-
CompatHelper.main()
41-
shell: julia --color=yes {0}
10+
- name: Pkg.add("CompatHelper")
11+
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
12+
- name: CompatHelper.main()
4213
env:
4314
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4415
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
45-
# COMPATHELPER_PRIV: ${{ secrets.COMPATHELPER_PRIV }}
16+
run: julia -e 'using CompatHelper; CompatHelper.main()'

.github/workflows/TagBot.yml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,6 @@ on:
44
types:
55
- created
66
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
237
jobs:
248
TagBot:
259
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
@@ -28,6 +12,4 @@ jobs:
2812
- uses: JuliaRegistries/TagBot@v1
2913
with:
3014
token: ${{ secrets.GITHUB_TOKEN }}
31-
# Edit the following line to reflect the actual name of the GitHub Secret containing your private key
3215
ssh: ${{ secrets.DOCUMENTER_KEY }}
33-
# ssh: ${{ secrets.NAME_OF_MY_SSH_PRIVATE_KEY_SECRET }}

.github/workflows/docs.yaml

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

.github/workflows/test.yml

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

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
[![](https://img.shields.io/badge/docs-stable-blue.svg)](https://byuflowlab.github.io/FLOWFarm.jl/)
2-
![Tests](https://github.com/byuflowlab/FLOWFarm.jl/actions/workflows/test.yml/badge.svg)
3-
1+
[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://byuflowlab.github.io/FLOWFarm.jl/stable)
2+
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://flow.byu.edu/FLOWFarm.jl/dev)
3+
[![Build Status](https://github.com/byuflowlab/FLOWFarm.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/byuflowlab/FLOWFarm.jl/actions/workflows/CI.yml?query=branch%3Amain)
44

55
# FLOWFarm.jl
66

0 commit comments

Comments
 (0)