Skip to content

Commit c9e197c

Browse files
committed
Run integration tests in a temporary environment
This avoids making ChainRulesCore a dependency of the downstream package, which can cause Aqua failures.
1 parent 3b7ac6d commit c9e197c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/IntegrationTest.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,13 @@ jobs:
3535
repository: ${{ matrix.package.user }}/${{ matrix.package.repo }}
3636
path: downstream
3737
- name: Load this and run the downstream tests
38-
shell: julia --project=downstream {0}
38+
shell: julia --project=@temp {0}
3939
run: |
4040
using Pkg
41+
Pkg.develop(PackageSpec(path="."))
4142
try
4243
# force it to use this PR's version of the package
43-
Pkg.develop(PackageSpec(path=".")) # ResolverError with main deps may be thrown here
44+
Pkg.develop(PackageSpec(path="downstream")) # ResolverError with main deps may be thrown here
4445
Pkg.update()
4546
Pkg.test() # ResolverError with test deps may be thrown here (before test process starts)
4647
catch err

0 commit comments

Comments
 (0)