Skip to content

Commit f71cfe0

Browse files
authored
Add dependabot and update CI a bit (#540)
1 parent 9a2f7bb commit f71cfe0

File tree

5 files changed

+31
-14
lines changed

5 files changed

+31
-14
lines changed

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
2+
version: 2
3+
updates:
4+
- package-ecosystem: "github-actions"
5+
directory: "/" # Location of package manifests
6+
schedule:
7+
interval: "weekly"

.github/workflows/CompatHelper.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,30 @@ on:
55
- cron: 0 0 * * *
66
workflow_dispatch:
77

8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
812
jobs:
913
CompatHelper:
1014
runs-on: ubuntu-latest
1115
steps:
12-
- uses: actions/checkout@v2
16+
- name: Check if Julia is already available in the PATH
17+
id: julia_in_path
18+
run: which julia
19+
continue-on-error: true
20+
- name: Install Julia, but only if it is not already available in the PATH
21+
uses: julia-actions/setup-julia@v1
22+
with:
23+
version: '1'
24+
arch: ${{ runner.arch }}
25+
if: steps.julia_in_path.outcome != 'success'
26+
- name: "Add the General registry via Git"
27+
run: |
28+
import Pkg
29+
ENV["JULIA_PKG_SERVER"] = ""
30+
Pkg.Registry.add("General")
31+
shell: julia --color=yes {0}
1332
- name: "Install CompatHelper"
1433
run: |
1534
import Pkg

.github/workflows/benchmark.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717
steps:
1818
# setup
1919
- uses: actions/checkout@v2
20-
- uses: julia-actions/setup-julia@latest
20+
- uses: julia-actions/setup-julia@v1
2121
with:
2222
version: '1.7'
23-
- uses: julia-actions/julia-buildpkg@latest
23+
- uses: julia-actions/julia-buildpkg@v1
2424
- name: install dependencies
2525
run: julia -e 'using Pkg; pkg"add PkgBenchmark [email protected]"'
2626
# run the benchmark suite

.github/workflows/ci.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,7 @@ jobs:
4040
with:
4141
version: ${{ matrix.version }}
4242
arch: ${{ matrix.arch }}
43-
- uses: actions/cache@v1
44-
env:
45-
cache-name: cache-artifacts
46-
with:
47-
path: ~/.julia/artifacts
48-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
49-
restore-keys: |
50-
${{ runner.os }}-test-${{ env.cache-name }}-
51-
${{ runner.os }}-test-
52-
${{ runner.os }}-
43+
- uses: julia-actions/cache@v1
5344
- uses: julia-actions/julia-buildpkg@v1
5445
- uses: julia-actions/julia-runtest@v1
5546
with:

.github/workflows/format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v2
17-
- uses: julia-actions/setup-julia@latest
17+
- uses: julia-actions/setup-julia@v1
1818
with:
1919
version: 1
2020
- run: |

0 commit comments

Comments
 (0)