Skip to content

Commit 96f120b

Browse files
merged main into this one
2 parents c867ae8 + d0cfaaf commit 96f120b

File tree

104 files changed

+134352
-4069
lines changed

Some content is hidden

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

104 files changed

+134352
-4069
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "monthly"

.github/workflows/CI.yml

Lines changed: 66 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -4,71 +4,97 @@ on:
44
push:
55
branches:
66
- master
7+
- backport-*
78
pull_request:
89
branches:
910
- master
11+
- backport-*
1012
merge_group:
1113
types: [checks_requested]
1214

15+
# needed to allow julia-actions/cache to delete old caches that it has created
16+
permissions:
17+
actions: write
18+
contents: read
19+
20+
# Cancel existing tests on the same PR if a new commit is added to a pull request
21+
concurrency:
22+
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
23+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
24+
1325
jobs:
1426
test:
15-
runs-on: ${{ matrix.os }}
27+
runs-on: ${{ matrix.runner.os }}
1628
strategy:
29+
fail-fast: false
30+
1731
matrix:
18-
version:
19-
- '1.6' # minimum supported version
20-
- '1' # current stable version
21-
os:
22-
- ubuntu-latest
23-
arch:
24-
- x64
25-
num_threads:
26-
- 1
27-
- 2
28-
include:
32+
runner:
33+
# Current stable version
34+
- version: '1'
35+
os: ubuntu-latest
36+
arch: x64
37+
num_threads: 2
38+
# Minimum supported version
39+
- version: 'min'
40+
os: ubuntu-latest
41+
arch: x64
42+
num_threads: 2
43+
# Single-threaded
44+
- version: '1'
45+
os: ubuntu-latest
46+
arch: x64
47+
num_threads: 1
48+
# Minimum supported version, single-threaded
49+
- version: 'min'
50+
os: ubuntu-latest
51+
arch: x64
52+
num_threads: 1
53+
# x86
2954
- version: '1'
3055
os: ubuntu-latest
3156
arch: x86
3257
num_threads: 2
58+
# Windows
3359
- version: '1'
3460
os: windows-latest
3561
arch: x64
3662
num_threads: 2
63+
# macOS
3764
- version: '1'
38-
os: macOS-latest
39-
arch: x64
65+
os: macos-latest
66+
arch: aarch64
4067
num_threads: 2
68+
test_group:
69+
- Group1
70+
- Group2
71+
4172
steps:
42-
- uses: actions/checkout@v2
43-
- uses: julia-actions/setup-julia@v1
44-
with:
45-
version: ${{ matrix.version }}
46-
arch: ${{ matrix.arch }}
47-
- uses: actions/cache@v1
48-
env:
49-
cache-name: cache-artifacts
50-
with:
51-
path: ~/.julia/artifacts
52-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
53-
restore-keys: |
54-
${{ runner.os }}-test-${{ env.cache-name }}-
55-
${{ runner.os }}-test-
56-
${{ runner.os }}-
57-
- uses: julia-actions/julia-buildpkg@latest
58-
- uses: julia-actions/julia-runtest@latest
73+
- uses: actions/checkout@v4
74+
75+
- uses: julia-actions/setup-julia@v2
5976
with:
60-
coverage: ${{ matrix.version == '1' && matrix.os == 'ubuntu-latest' && matrix.num_threads == 1 }}
77+
version: ${{ matrix.runner.version }}
78+
arch: ${{ matrix.runner.arch }}
79+
80+
- uses: julia-actions/cache@v2
81+
82+
- uses: julia-actions/julia-buildpkg@v1
83+
84+
- uses: julia-actions/julia-runtest@v1
6185
env:
62-
GROUP: All
63-
JULIA_NUM_THREADS: ${{ matrix.num_threads }}
86+
GROUP: ${{ matrix.test_group }}
87+
JULIA_NUM_THREADS: ${{ matrix.runner.num_threads }}
88+
6489
- uses: julia-actions/julia-processcoverage@v1
65-
if: matrix.version == '1' && matrix.os == 'ubuntu-latest' && matrix.num_threads == 1
66-
- uses: codecov/codecov-action@v1
67-
if: matrix.version == '1' && matrix.os == 'ubuntu-latest' && matrix.num_threads == 1
90+
91+
- uses: codecov/codecov-action@v5
6892
with:
69-
file: lcov.info
70-
- uses: coverallsapp/github-action@master
71-
if: matrix.version == '1' && matrix.os == 'ubuntu-latest' && matrix.num_threads == 1
93+
files: lcov.info
94+
token: ${{ secrets.CODECOV_TOKEN }}
95+
fail_ci_if_error: true
96+
97+
- uses: coverallsapp/github-action@v2
7298
with:
7399
github-token: ${{ secrets.GITHUB_TOKEN }}
74100
path-to-lcov: lcov.info

.github/workflows/CompatHelper.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ jobs:
1414
env:
1515
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1616
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
17-
run: julia -e 'using CompatHelper; CompatHelper.main(; subdirs = ["", "docs", "test", "test/turing"])'
17+
run: julia -e 'using CompatHelper; CompatHelper.main(; subdirs = ["", "docs", "test"])'

.github/workflows/Docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ jobs:
2121
docs:
2222
runs-on: ubuntu-latest
2323
steps:
24-
- uses: actions/checkout@v2
25-
- uses: julia-actions/setup-julia@latest
24+
- uses: actions/checkout@v4
25+
- uses: julia-actions/setup-julia@v2
2626
with:
2727
version: '1'
2828
- name: Install dependencies

.github/workflows/DocsNav.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Add Navbar
2+
3+
on:
4+
page_build: # Triggers the workflow on push events to gh-pages branch
5+
workflow_dispatch: # Allows manual triggering
6+
schedule:
7+
- cron: '0 0 * * 0' # Runs every week on Sunday at midnight (UTC)
8+
9+
jobs:
10+
add-navbar:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
steps:
15+
- name: Checkout gh-pages
16+
uses: actions/checkout@v4
17+
with:
18+
ref: gh-pages
19+
fetch-depth: 0
20+
21+
- name: Download insert_navbar.sh
22+
run: |
23+
curl -O https://raw.githubusercontent.com/TuringLang/turinglang.github.io/main/assets/scripts/insert_navbar.sh
24+
chmod +x insert_navbar.sh
25+
26+
- name: Update Navbar
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
run: |
30+
git config user.name github-actions[bot]
31+
git config user.email github-actions[bot]@users.noreply.github.com
32+
33+
# Define the URL of the navbar to be used
34+
NAVBAR_URL="https://raw.githubusercontent.com/TuringLang/turinglang.github.io/main/assets/scripts/TuringNavbar.html"
35+
36+
# Update all HTML files in the current directory (gh-pages root)
37+
./insert_navbar.sh . $NAVBAR_URL
38+
39+
# Remove the insert_navbar.sh file
40+
rm insert_navbar.sh
41+
42+
# Check if there are any changes
43+
if [[ -n $(git status -s) ]]; then
44+
git add .
45+
git commit -m "Added navbar and removed insert_navbar.sh"
46+
git push "https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" gh-pages
47+
else
48+
echo "No changes to commit"
49+
fi

.github/workflows/DocsPreviewCleanup.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout gh-pages branch
12-
uses: actions/checkout@v2
12+
uses: actions/checkout@v4
1313
with:
1414
ref: gh-pages
1515
- name: Delete preview and history + push changes

.github/workflows/Format.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ jobs:
2020
format:
2121
runs-on: ubuntu-latest
2222
steps:
23-
- uses: actions/checkout@v2
24-
- uses: julia-actions/setup-julia@latest
23+
- uses: actions/checkout@v4
24+
- uses: julia-actions/setup-julia@v2
2525
with:
2626
version: 1
2727
- name: Format code

.github/workflows/IntegrationTest.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ jobs:
2121
- {user: TuringLang, repo: Turing.jl}
2222

2323
steps:
24-
- uses: actions/checkout@v2
25-
- uses: julia-actions/setup-julia@v1
24+
- uses: actions/checkout@v4
25+
- uses: julia-actions/setup-julia@v2
2626
with:
2727
version: 1
2828
arch: x64
29-
- uses: julia-actions/julia-buildpkg@latest
29+
- uses: julia-actions/julia-buildpkg@v1
3030
- name: Clone Downstream
31-
uses: actions/checkout@v2
31+
uses: actions/checkout@v4
3232
with:
3333
repository: ${{ matrix.package.user }}/${{ matrix.package.repo }}
3434
path: downstream

.github/workflows/JuliaNightly.yml

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

.github/workflows/JuliaPre.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: JuliaPre
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
# needed to allow julia-actions/cache to delete old caches that it has created
12+
permissions:
13+
actions: write
14+
contents: read
15+
16+
jobs:
17+
test:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
- uses: julia-actions/setup-julia@v2
22+
with:
23+
version: 'pre' # pre-release
24+
arch: x64
25+
- uses: julia-actions/cache@v2
26+
- uses: julia-actions/julia-buildpkg@v1
27+
- uses: julia-actions/julia-runtest@v1

0 commit comments

Comments
 (0)