Skip to content

Commit e652157

Browse files
dev first
namespacing fix CI? one more ugh fix downstream try some more things fix local references? keep slamming CI more CI fixes?
1 parent 3c438ef commit e652157

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

.ci/develop.jl renamed to .ci/test.jl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,20 @@ const GROUP = get(ENV, "GROUP", "All")
44

55
function dev_subpkg(subpkg)
66
subpkg_path = joinpath(dirname(@__DIR__), "lib", subpkg)
7-
Pkg.develop(PackageSpec(path=subpkg_path))
7+
Pkg.develop(Pkg.PackageSpec(path=subpkg_path))
88
end
99

1010
function activate_subpkg_env(subpkg)
1111
subpkg_path = joinpath(dirname(@__DIR__), "lib", subpkg)
1212
Pkg.activate(subpkg_path)
13-
Pkg.develop(PackageSpec(path=subpkg_path))
13+
Pkg.develop(Pkg.PackageSpec(path=subpkg_path))
1414
Pkg.instantiate()
1515
end
1616

1717
Pkg.update()
1818

1919
# All packages need the core
20-
dev_subpkg("ArrayInterfaceCore")
20+
dev_subpkg("ArrayInterfaceCore")
21+
Pkg.develop("ArrayInterface")
22+
23+
Pkg.test("ArrayInterface"; coverage=true)

.github/workflows/Downstream.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ jobs:
3434
with:
3535
version: ${{ matrix.julia-version }}
3636
arch: x64
37-
- uses: julia-actions/julia-buildpkg@latest
3837
- name: Clone Downstream
3938
uses: actions/checkout@v2
4039
with:
@@ -45,8 +44,17 @@ jobs:
4544
run: |
4645
using Pkg
4746
try
47+
4848
# force it to use this PR's version of the package
4949
Pkg.develop(PackageSpec(path=".")) # resolver may fail with main deps
50+
51+
function dev_subpkg(subpkg)
52+
subpkg_path = joinpath(dirname(@__DIR__),"ArrayInterface", "lib", subpkg)
53+
Pkg.develop(Pkg.PackageSpec(path=subpkg_path))
54+
end
55+
dev_subpkg("ArrayInterfaceCore")
56+
Pkg.develop("ArrayInterface")
57+
5058
Pkg.update()
5159
Pkg.test() # resolver may fail with test time deps
5260
catch err

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ jobs:
3838
${{ runner.os }}-test-${{ env.cache-name }}-
3939
${{ runner.os }}-test-
4040
${{ runner.os }}-
41-
- uses: julia-actions/julia-buildpkg@v1
42-
- uses: julia-actions/julia-runtest@v1
41+
- run: julia .ci/test.jl
4342
env:
4443
GROUP: ${{ matrix.group }}
4544
- uses: julia-actions/julia-processcoverage@v1

0 commit comments

Comments
 (0)