Skip to content

Commit 2a1dedd

Browse files
committed
Set up GitHub CI
1 parent 9bb0854 commit 2a1dedd

File tree

11 files changed

+113
-217
lines changed

11 files changed

+113
-217
lines changed

lib/DiffinDiffsBase/.github/workflows/CI-latest.yml renamed to .github/workflows/CI-latest.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,32 @@ on:
33
pull_request:
44
branches:
55
- master
6+
paths-ignore:
7+
- 'docs/**'
8+
- '**.md'
69
push:
710
branches:
811
- master
12+
paths-ignore:
13+
- 'docs/**'
14+
- '**.md'
915
tags: '*'
1016
jobs:
1117
test:
12-
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
18+
name: ${{ matrix.package }} - Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
1319
env:
1420
JULIA_NUM_THREADS: 2
1521
runs-on: ${{ matrix.os }}
1622
strategy:
1723
fail-fast: false
1824
matrix:
25+
package:
26+
- DiffinDiffsBase
27+
- InteractionWeightedDIDs
1928
version:
2029
- 'nightly'
2130
os:
2231
- 'ubuntu-latest'
23-
- 'macos-latest'
2432
arch:
2533
- 'x64'
2634
steps:
@@ -39,5 +47,9 @@ jobs:
3947
${{ runner.os }}-test-${{ env.cache-name }}-
4048
${{ runner.os }}-test-
4149
${{ runner.os }}-
50+
- name: Develop lib packages
51+
run: julia --project=. -e "using Pkg; lib = joinpath(@__DIR__, \""lib\""); paths = joinpath.(lib, readdir(lib)); foreach(x->Pkg.develop(PackageSpec(path=x)), paths)"
4252
- uses: julia-actions/julia-buildpkg@v1
4353
- uses: julia-actions/julia-runtest@v1
54+
env:
55+
TEST_TARGET: ${{ matrix.package }}

.github/workflows/CI-stable.yml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
name: CI-stable
2+
on:
3+
pull_request:
4+
branches:
5+
- master
6+
paths-ignore:
7+
- 'docs/**'
8+
- '**.md'
9+
push:
10+
branches:
11+
- master
12+
paths-ignore:
13+
- 'docs/**'
14+
- '**.md'
15+
tags: '*'
16+
jobs:
17+
test:
18+
name: ${{ matrix.package }} - Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
19+
env:
20+
JULIA_NUM_THREADS: 2
21+
runs-on: ${{ matrix.os }}
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
package:
26+
- DiffinDiffsBase
27+
- InteractionWeightedDIDs
28+
version:
29+
- '1'
30+
os:
31+
- ubuntu-latest
32+
- macos-latest
33+
- windows-latest
34+
arch:
35+
- x64
36+
include:
37+
- package: DiffinDiffs
38+
version: '1'
39+
os: ubuntu-latest
40+
arch: x64
41+
- package: DiffinDiffsBase
42+
version: '1.3'
43+
os: ubuntu-latest
44+
arch: x64
45+
- package: InteractionWeightedDIDs
46+
version: '1.3'
47+
os: ubuntu-latest
48+
arch: x64
49+
steps:
50+
- uses: actions/checkout@v2
51+
- uses: julia-actions/setup-julia@v1
52+
with:
53+
version: ${{ matrix.version }}
54+
arch: ${{ matrix.arch }}
55+
- uses: actions/cache@v1
56+
env:
57+
cache-name: cache-artifacts
58+
with:
59+
path: ~/.julia/artifacts
60+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
61+
restore-keys: |
62+
${{ runner.os }}-test-${{ env.cache-name }}-
63+
${{ runner.os }}-test-
64+
${{ runner.os }}-
65+
- name: Develop lib packages
66+
run: julia --project=. -e "using Pkg; lib = joinpath(@__DIR__, \""lib\""); paths = joinpath.(lib, readdir(lib)); foreach(x->Pkg.develop(PackageSpec(path=x)), paths)"
67+
- uses: julia-actions/julia-buildpkg@v1
68+
- uses: julia-actions/julia-runtest@v1
69+
env:
70+
TEST_TARGET: ${{ matrix.package }}
71+
- uses: julia-actions/julia-processcoverage@v1
72+
with:
73+
directories: src,lib/DiffinDiffsBase/src,lib/InteractionWeightedDIDs/src
74+
- uses: codecov/codecov-action@v2
75+
with:
76+
file: lcov.info

Project.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@ Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
1010

1111
[compat]
1212
DiffinDiffsBase = "0.4"
13+
Documenter = "0.27"
1314
InteractionWeightedDIDs = "0.3"
1415
Reexport = "0.2, 1"
1516
julia = "1.3"
17+
18+
[extras]
19+
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
20+
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
21+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
22+
23+
[targets]
24+
test = ["Documenter", "Pkg", "Test"]

lib/DiffinDiffsBase/.github/workflows/CI-stable.yml

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

lib/DiffinDiffsBase/.github/workflows/CompatHelper.yml

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

lib/DiffinDiffsBase/.github/workflows/TagBot.yml

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

lib/InteractionWeightedDIDs/.github/workflows/CI-latest.yml

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

lib/InteractionWeightedDIDs/.github/workflows/CI-stable.yml

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

lib/InteractionWeightedDIDs/.github/workflows/CompatHelper.yml

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

lib/InteractionWeightedDIDs/.github/workflows/TagBot.yml

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

0 commit comments

Comments
 (0)