Skip to content

Commit c809e63

Browse files
update CI
1 parent 16b7f73 commit c809e63

File tree

2 files changed

+18
-14
lines changed

2 files changed

+18
-14
lines changed

.github/workflows/Documentation.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Documentation
2+
23
on:
34
push:
45
branches:
@@ -14,10 +15,14 @@ jobs:
1415
- uses: julia-actions/setup-julia@latest
1516
with:
1617
version: '1'
17-
- run: julia --project -e 'using Pkg; Pkg.develop([PackageSpec(path=joinpath(pwd(), "lib", "ArrayInterfaceCore"))])'
18-
- uses: julia-actions/julia-buildpkg@latest
19-
- run: julia --project=docs/ -e 'using Pkg; Pkg.develop([PackageSpec(path=joinpath(pwd(), "lib", "ArrayInterfaceCore"))]); Pkg.instantiate()'
20-
- uses: julia-actions/julia-docdeploy@releases/v1
18+
- name: Install dependencies
19+
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
20+
- name: Build and deploy
2121
env:
22-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23-
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
23+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key
24+
run: julia --project=docs/ --code-coverage=user docs/make.jl
25+
- uses: julia-actions/julia-processcoverage@v1
26+
- uses: codecov/codecov-action@v1
27+
with:
28+
file: lcov.info

.github/workflows/Downstream.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ jobs:
3030
- {user: SciML, repo: OrdinaryDiffEq.jl, group: Core}
3131
- {user: SciML, repo: OrdinaryDiffEq.jl, group: Interface}
3232
- {user: SciML, repo: DelayDiffEq.jl, group: Interface}
33-
- {user: JuliaSIMD, repo: VectorizationBase.jl, group: Interface}
34-
- {user: JuliaSIMD, repo: LoopVectorization.jl, group: Downstream3}
33+
3534
steps:
3635
- uses: actions/checkout@v2
3736
- uses: julia-actions/setup-julia@v1
@@ -45,18 +44,14 @@ jobs:
4544
repository: ${{ matrix.package.user }}/${{ matrix.package.repo }}
4645
path: downstream
4746
- name: Load this and run the downstream tests
48-
shell: julia --color=yes {0}
47+
shell: julia --color=yes --project=downstream {0}
4948
run: |
5049
using Pkg
5150
try
5251
# force it to use this PR's version of the package
5352
Pkg.develop(PackageSpec(path=".")) # resolver may fail with main deps
54-
Pkg.develop(Pkg.PackageSpec(path=joinpath(pwd(), "lib", "ArrayInterfaceCore")))
55-
Pkg.develop(Pkg.PackageSpec(path=joinpath(pwd(), "lib", "ArrayInterfaceOffsetArrays")))
56-
Pkg.develop(Pkg.PackageSpec(path=joinpath(pwd(), "lib", "ArrayInterfaceStaticArrays")))
57-
Pkg.activate("downstream")
5853
Pkg.update()
59-
Pkg.test() # resolver may fail with test time deps
54+
Pkg.test(coverage=true) # resolver may fail with test time deps
6055
catch err
6156
err isa Pkg.Resolve.ResolverError || rethrow()
6257
# If we can't resolve that means this is incompatible by SemVer and this is fine
@@ -65,3 +60,7 @@ jobs:
6560
@info "Not compatible with this release. No problem." exception=err
6661
exit(0) # Exit immediately, as a success
6762
end
63+
- uses: julia-actions/julia-processcoverage@v1
64+
- uses: codecov/codecov-action@v1
65+
with:
66+
file: lcov.info

0 commit comments

Comments
 (0)