Skip to content

Commit 227f716

Browse files
authored
Merge pull request #296 from abhro/actions
Create dependabot.yml and update action versions
2 parents 22fd8d6 + 39dd53f commit 227f716

File tree

4 files changed

+50
-22
lines changed

4 files changed

+50
-22
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: "monthly"

.github/workflows/BuildDocs.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,18 @@ jobs:
66
BuildDocs:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v2
10-
- uses: julia-actions/setup-julia@latest
9+
- uses: actions/checkout@v5
10+
- uses: julia-actions/setup-julia@v2
1111
with:
1212
version: '1.6'
1313
- name: Install dependencies
14-
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
14+
shell: julia --project=docs/ --color=yes {0}
15+
run: |
16+
using Pkg
17+
Pkg.develop(PackageSpec(path=pwd()))
18+
Pkg.instantiate()
1519
- name: Build Docs
16-
run: julia --project=docs/ docs/make.jl
20+
run: julia --project=docs/ --color=yes docs/make.jl
1721
- name: Deploy Documentation
1822
if: ${{ (github.ref == 'refs/heads/main' && github.repository == 'Symengine/symengine.jl') || (github.ref == 'refs/heads/master' && github.repository == 'Symengine/symengine.jl')}}
1923
uses: peaceiris/actions-gh-pages@v3

.github/workflows/CompatHelper.yml

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,40 @@ on:
33
schedule:
44
- cron: '00 00 * * *'
55
workflow_dispatch:
6+
permissions:
7+
contents: write
8+
pull-requests: write
69
jobs:
710
CompatHelper:
811
runs-on: ubuntu-latest
912
steps:
10-
- name: Pkg.add("CompatHelper")
11-
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
12-
- name: CompatHelper.main()
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@v2
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+
shell: julia --color=yes {0}
25+
run: |
26+
import Pkg
27+
ENV["JULIA_PKG_SERVER"] = ""
28+
Pkg.Registry.add("General")
29+
- name: "Install CompatHelper"
30+
shell: julia --color=yes {0}
31+
run: |
32+
import Pkg
33+
name = "CompatHelper"
34+
uuid = "aa819f21-2bde-4658-8897-bab36330d9b7"
35+
version = "3"
36+
Pkg.add(; name, uuid, version)
37+
- name: Run CompatHelper
38+
shell: julia --color=yes {0}
39+
run: using CompatHelper; CompatHelper.main()
1340
env:
1441
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1542
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }} # optional
16-
run: julia -e 'using CompatHelper; CompatHelper.main()'

.github/workflows/ci.yml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
fail-fast: false
1919
matrix:
2020
version:
21-
- '1.6' # minimum version set in Project.toml
21+
- 'min' # minimum version set in Project.toml
2222
- '1' # latest 1.x.y
2323
# - 'nightly'
2424
os:
@@ -28,32 +28,23 @@ jobs:
2828
arch:
2929
- x64
3030
steps:
31-
- uses: actions/checkout@v4
31+
- uses: actions/checkout@v5
3232
- uses: julia-actions/setup-julia@v2
3333
with:
3434
version: ${{ matrix.version }}
3535
arch: ${{ matrix.arch }}
36-
- uses: actions/cache@v4
37-
env:
38-
cache-name: cache-artifacts
39-
with:
40-
path: ~/.julia/artifacts
41-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
42-
restore-keys: |
43-
${{ runner.os }}-test-${{ env.cache-name }}-
44-
${{ runner.os }}-test-
45-
${{ runner.os }}-
36+
- uses: julia-actions/cache@v2
4637
- uses: julia-actions/julia-buildpkg@v1
4738
- uses: julia-actions/julia-runtest@v1
4839
- uses: julia-actions/julia-processcoverage@v1
4940
- uses: codecov/codecov-action@v5
5041
with:
51-
file: ./lcov.info
42+
files: ./lcov.info
5243
flags: unittests
5344
name: codecov-umbrella
5445
fail_ci_if_error: false
5546
token: ${{ secrets.CODECOV_TOKEN }}
56-
- uses: coverallsapp/github-action@master
47+
- uses: coverallsapp/github-action@v2
5748
with:
5849
github-token: ${{ secrets.GITHUB_TOKEN }}
5950
flag-name: run-${{ matrix.version }}-${{ matrix.os }}-${{ matrix.arch }}

0 commit comments

Comments
 (0)