Skip to content

Commit 6136493

Browse files
New Folder Structure (#368)
Please have a look at all GHA workflows before merging, I have changed them properly but please review them incase I missed something! Closes #363
1 parent 8bfa836 commit 6136493

File tree

695 files changed

+99
-43
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

695 files changed

+99
-43
lines changed

.github/workflows/Benchmark.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ on:
44
pull_request:
55
branches:
66
- main
7-
paths-ignore:
8-
- 'DoodleBUGS/**'
7+
paths:
8+
- 'JuliaBUGS/**'
9+
- '.github/workflows/Benchmark.yml'
910
workflow_dispatch:
1011

1112
permissions:
@@ -47,12 +48,13 @@ jobs:
4748
path: |
4849
~/.julia
4950
~/.julia/artifacts
50-
key: ${{ runner.os }}-julia-benchmark-${{ matrix.arch }}-${{ hashFiles('**/Project.toml', '**/Manifest.toml') }}
51+
key: ${{ runner.os }}-julia-benchmark-${{ matrix.arch }}-${{ hashFiles('JuliaBUGS/**/Project.toml', 'JuliaBUGS/**/Manifest.toml') }}
5152
restore-keys: |
5253
${{ runner.os }}-julia-benchmark-${{ matrix.arch }}-
5354
${{ runner.os }}-julia-benchmark-
5455
5556
- name: Run benchmarks
57+
working-directory: ./JuliaBUGS
5658
run: |
5759
julia --project=benchmark -e 'using Pkg; Pkg.instantiate()'
5860
julia --project=benchmark benchmark/run_benchmarks.jl > benchmark_results_${{ matrix.os }}.txt
@@ -61,7 +63,7 @@ jobs:
6163
uses: actions/upload-artifact@v4
6264
with:
6365
name: benchmark-results-${{ matrix.os }}
64-
path: benchmark_results_${{ matrix.os }}.txt
66+
path: JuliaBUGS/benchmark_results_${{ matrix.os }}.txt
6567
retention-days: 7
6668

6769
post-results:

.github/workflows/CompatHelper.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- name: "Run CompatHelper"
3838
run: |
3939
import CompatHelper
40-
CompatHelper.main()
40+
CompatHelper.main(subdirs=["JuliaBUGS"])
4141
shell: julia --color=yes {0}
4242
env:
4343
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/Coverage.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,13 @@ on:
44
push:
55
branches:
66
- main
7+
paths:
8+
- 'JuliaBUGS/**'
9+
- '.github/workflows/Coverage.yml'
710
pull_request:
8-
11+
paths:
12+
- 'JuliaBUGS/**'
13+
- '.github/workflows/Coverage.yml'
914
workflow_dispatch:
1015

1116
jobs:
@@ -34,25 +39,31 @@ jobs:
3439
path: |
3540
~/.julia
3641
~/.julia/artifacts
37-
key: ${{ runner.os }}-julia-${{ matrix.version }}-${{ matrix.arch }}-${{ hashFiles('**/Project.toml', '**/Manifest.toml') }}
42+
key: ${{ runner.os }}-julia-${{ matrix.version }}-${{ matrix.arch }}-${{ hashFiles('JuliaBUGS/**/Project.toml', 'JuliaBUGS/**/Manifest.toml') }}
3843
restore-keys: |
3944
${{ runner.os }}-julia-${{ matrix.version }}-${{ matrix.arch }}-
4045
${{ runner.os }}-julia-${{ matrix.version }}-
4146
4247
- uses: julia-actions/julia-buildpkg@v1
48+
with:
49+
project: JuliaBUGS
4350

4451
- name: Running all tests with coverage
4552
uses: julia-actions/julia-runtest@v1
53+
with:
54+
project: JuliaBUGS
4655
env:
4756
TEST_GROUP: "all"
4857

4958
- uses: julia-actions/julia-processcoverage@v1
59+
with:
60+
directories: JuliaBUGS
5061

5162
- uses: codecov/codecov-action@v4
5263
with:
53-
file: lcov.info
64+
file: JuliaBUGS/lcov.info
5465

5566
- uses: coverallsapp/github-action@master
5667
with:
5768
github-token: ${{ secrets.GITHUB_TOKEN }}
58-
path-to-lcov: lcov.info
69+
path-to-lcov: JuliaBUGS/lcov.info

.github/workflows/Docs.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,15 @@ on:
55
branches:
66
- main
77
tags: '*'
8-
paths-ignore:
9-
- 'DoodleBUGS/**'
8+
paths:
9+
- 'JuliaBUGS/docs/**'
10+
- 'JuliaBUGS/src/**'
11+
- '.github/workflows/Docs.yml'
1012
pull_request:
11-
paths-ignore:
12-
- 'DoodleBUGS/**'
13+
paths:
14+
- 'JuliaBUGS/docs/**'
15+
- 'JuliaBUGS/src/**'
16+
- '.github/workflows/Docs.yml'
1317

1418
concurrency:
1519
# Skip intermediate builds: always.
@@ -28,3 +32,8 @@ jobs:
2832
steps:
2933
- name: Build and deploy Documenter.jl docs
3034
uses: TuringLang/actions/DocsDocumenter@main
35+
with:
36+
pkg_path: JuliaBUGS
37+
doc-path: JuliaBUGS/docs
38+
doc-make-path: JuliaBUGS/docs/make.jl
39+
doc-build-path: JuliaBUGS/docs/build

.github/workflows/Format.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@ name: Format
22

33
on:
44
pull_request:
5-
paths-ignore:
6-
- 'DoodleBUGS/**'
5+
paths:
6+
- 'JuliaBUGS/**'
7+
- '.github/workflows/Format.yml'
78
push:
89
branches:
910
- gh/update_manifests
11+
paths:
12+
- 'JuliaBUGS/**'
13+
- '.github/workflows/Format.yml'
1014

1115
concurrency:
1216
# Skip intermediate builds: always.
@@ -18,7 +22,7 @@ jobs:
1822
format:
1923
runs-on: ubuntu-latest
2024
steps:
21-
- uses: actions/checkout@v2
25+
- uses: actions/checkout@v4
2226
- uses: julia-actions/setup-julia@latest
2327
with:
2428
version: 1
@@ -27,7 +31,7 @@ jobs:
2731
using Pkg
2832
Pkg.add(; name="JuliaFormatter", uuid="98e50ef6-434e-11e9-1051-2b60c6c9e899")
2933
using JuliaFormatter
30-
format("."; verbose=true)
34+
format("JuliaBUGS"; verbose=true)
3135
shell: julia --color=yes {0}
3236
- uses: reviewdog/action-suggester@v1
3337
with:

.github/workflows/Tests.yml

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ on:
44
push:
55
branches:
66
- main
7-
paths-ignore:
8-
- 'DoodleBUGS/**'
7+
paths:
8+
- 'JuliaBUGS/**'
9+
- '.github/workflows/Tests.yml'
910
pull_request:
10-
paths-ignore:
11-
- 'DoodleBUGS/**'
12-
11+
paths:
12+
- 'JuliaBUGS/**'
13+
- '.github/workflows/Tests.yml'
1314
workflow_dispatch:
1415

1516
jobs:
@@ -52,15 +53,19 @@ jobs:
5253
path: |
5354
~/.julia
5455
~/.julia/artifacts
55-
key: ${{ runner.os }}-julia-${{ matrix.version }}-${{ matrix.arch }}-${{ hashFiles('**/Project.toml', '**/Manifest.toml') }}
56+
key: ${{ runner.os }}-julia-${{ matrix.version }}-${{ matrix.arch }}-${{ hashFiles('JuliaBUGS/**/Project.toml', 'JuliaBUGS/**/Manifest.toml') }}
5657
restore-keys: |
5758
${{ runner.os }}-julia-${{ matrix.version }}-${{ matrix.arch }}-
5859
${{ runner.os }}-julia-${{ matrix.version }}-
5960
6061
- uses: julia-actions/julia-buildpkg@v1
62+
with:
63+
project: JuliaBUGS
6164

6265
- name: Running ${{ matrix.test_group }} tests
6366
uses: julia-actions/julia-runtest@v1
67+
with:
68+
project: JuliaBUGS
6469
env:
6570
TEST_GROUP: ${{ matrix.test_group }}
6671

@@ -97,15 +102,19 @@ jobs:
97102
path: |
98103
~/.julia
99104
~/.julia/artifacts
100-
key: ${{ runner.os }}-julia-${{ matrix.version }}-${{ matrix.arch }}-${{ hashFiles('**/Project.toml', '**/Manifest.toml') }}
105+
key: ${{ runner.os }}-julia-${{ matrix.version }}-${{ matrix.arch }}-${{ hashFiles('JuliaBUGS/**/Project.toml', 'JuliaBUGS/**/Manifest.toml') }}
101106
restore-keys: |
102107
${{ runner.os }}-julia-${{ matrix.version }}-${{ matrix.arch }}-
103108
${{ runner.os }}-julia-${{ matrix.version }}-
104109
105110
- uses: julia-actions/julia-buildpkg@v1
111+
with:
112+
project: JuliaBUGS
106113

107114
- name: Running ${{ matrix.test_group }} tests
108115
uses: julia-actions/julia-runtest@v1
116+
with:
117+
project: JuliaBUGS
109118
env:
110119
TEST_GROUP: ${{ matrix.test_group }}
111120

@@ -137,19 +146,23 @@ jobs:
137146
path: |
138147
~/.julia
139148
~/.julia/artifacts
140-
key: ${{ runner.os }}-julia-${{ matrix.version }}-${{ matrix.arch }}-${{ hashFiles('**/Project.toml', '**/Manifest.toml') }}
149+
key: ${{ runner.os }}-julia-${{ matrix.version }}-${{ matrix.arch }}-${{ hashFiles('JuliaBUGS/**/Project.toml', 'JuliaBUGS/**/Manifest.toml') }}
141150
restore-keys: |
142151
${{ runner.os }}-julia-${{ matrix.version }}-${{ matrix.arch }}-
143152
${{ runner.os }}-julia-${{ matrix.version }}-
144153
145154
- uses: julia-actions/julia-buildpkg@v1
155+
with:
156+
project: JuliaBUGS
146157

147158
- name: Set thread count
148159
id: threads
149160
run: echo "count=$(nproc)" >> $GITHUB_OUTPUT
150161

151162
- name: Running parallel_sampling tests
152163
uses: julia-actions/julia-runtest@v1
164+
with:
165+
project: JuliaBUGS
153166
env:
154167
TEST_GROUP: parallel_sampling
155168
JULIA_NUM_THREADS: ${{ steps.threads.outputs.count }}

.github/workflows/TestsMacOS.yml

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1-
name: Tests
1+
name: TestsMacOS
22

33
on:
44
push:
55
branches:
66
- main
7-
paths-ignore:
8-
- 'DoodleBUGS/**'
7+
paths:
8+
- 'JuliaBUGS/**'
9+
- '.github/workflows/TestsMacOS.yml'
910
pull_request:
10-
paths-ignore:
11-
- 'DoodleBUGS/**'
11+
paths:
12+
- 'JuliaBUGS/**'
13+
- '.github/workflows/TestsMacOS.yml'
1214
workflow_dispatch:
1315

1416
jobs:
@@ -48,15 +50,19 @@ jobs:
4850
path: |
4951
~/.julia
5052
~/.julia/artifacts
51-
key: ${{ runner.os }}-julia-${{ matrix.version }}-${{ matrix.arch }}-${{ hashFiles('**/Project.toml', '**/Manifest.toml') }}
53+
key: ${{ runner.os }}-julia-${{ matrix.version }}-${{ matrix.arch }}-${{ hashFiles('JuliaBUGS/**/Project.toml', 'JuliaBUGS/**/Manifest.toml') }}
5254
restore-keys: |
5355
${{ runner.os }}-julia-${{ matrix.version }}-${{ matrix.arch }}-
5456
${{ runner.os }}-julia-${{ matrix.version }}-
5557
5658
- uses: julia-actions/julia-buildpkg@v1
59+
with:
60+
project: JuliaBUGS
5761

5862
- name: Running ${{ matrix.test_group }} tests
5963
uses: julia-actions/julia-runtest@v1
64+
with:
65+
project: JuliaBUGS
6066
env:
6167
TEST_GROUP: ${{ matrix.test_group }}
6268

@@ -91,15 +97,19 @@ jobs:
9197
path: |
9298
~/.julia
9399
~/.julia/artifacts
94-
key: ${{ runner.os }}-julia-${{ matrix.version }}-${{ matrix.arch }}-${{ hashFiles('**/Project.toml', '**/Manifest.toml') }}
100+
key: ${{ runner.os }}-julia-${{ matrix.version }}-${{ matrix.arch }}-${{ hashFiles('JuliaBUGS/**/Project.toml', 'JuliaBUGS/**/Manifest.toml') }}
95101
restore-keys: |
96102
${{ runner.os }}-julia-${{ matrix.version }}-${{ matrix.arch }}-
97103
${{ runner.os }}-julia-${{ matrix.version }}-
98104
99105
- uses: julia-actions/julia-buildpkg@v1
106+
with:
107+
project: JuliaBUGS
100108

101109
- name: Running ${{ matrix.test_group }} tests
102110
uses: julia-actions/julia-runtest@v1
111+
with:
112+
project: JuliaBUGS
103113
env:
104114
TEST_GROUP: ${{ matrix.test_group }}
105115

@@ -129,19 +139,23 @@ jobs:
129139
path: |
130140
~/.julia
131141
~/.julia/artifacts
132-
key: ${{ runner.os }}-julia-${{ matrix.version }}-${{ matrix.arch }}-${{ hashFiles('**/Project.toml', '**/Manifest.toml') }}
142+
key: ${{ runner.os }}-julia-${{ matrix.version }}-${{ matrix.arch }}-${{ hashFiles('JuliaBUGS/**/Project.toml', 'JuliaBUGS/**/Manifest.toml') }}
133143
restore-keys: |
134144
${{ runner.os }}-julia-${{ matrix.version }}-${{ matrix.arch }}-
135145
${{ runner.os }}-julia-${{ matrix.version }}-
136146
137147
- uses: julia-actions/julia-buildpkg@v1
148+
with:
149+
project: JuliaBUGS
138150

139151
- name: Set thread count
140152
id: threads
141153
run: echo "count=$(sysctl -n hw.activecpu)" >> $GITHUB_OUTPUT
142154

143155
- name: Running parallel_sampling tests
144156
uses: julia-actions/julia-runtest@v1
157+
with:
158+
project: JuliaBUGS
145159
env:
146160
TEST_GROUP: parallel_sampling
147161
JULIA_NUM_THREADS: ${{ steps.threads.outputs.count }}

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# Julia code coverage files
32
*.jl.cov
43
*.jl.*.cov
@@ -28,3 +27,6 @@ Manifest.toml
2827

2928
# Local configuration files
3029
*.local.*
30+
31+
# gitingest generated files
32+
digest.txt
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)