Skip to content

Commit 08d797f

Browse files
committed
And again
1 parent 90caf77 commit 08d797f

2 files changed

Lines changed: 14 additions & 9 deletions

File tree

.github/workflows/ReusableTest.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ jobs:
6666
run: |
6767
Xvfb :99 -screen 0 1024x768x24 &
6868
echo "DISPLAY=:99" >> $GITHUB_ENV
69+
- uses: julia-actions/julia-buildpkg@v1
6970
- name: Resolve and instantiate test environment
7071
shell: bash
7172
run: |
@@ -77,7 +78,11 @@ jobs:
7778
echo "Copied $TEST_MANIFEST to $TEST_TARGET"
7879
fi
7980
julia --project=test -e "using Pkg; Pkg.resolve(); Pkg.instantiate()"
80-
- uses: julia-actions/julia-buildpkg@v1
81+
if [ -f "$TEST_MANIFEST" ] && [ ! -f "$TEST_TARGET" ]; then
82+
cp "$TEST_MANIFEST" "$TEST_TARGET"
83+
echo "Copied $TEST_MANIFEST to $TEST_TARGET"
84+
fi
85+
julia --project=test -e "using Pkg; Pkg.resolve(); Pkg.instantiate()"
8186
8287
- uses: julia-actions/julia-runtest@v1
8388
env:

.github/workflows/Test.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ jobs:
5959
run: |
6060
Xvfb :99 -screen 0 1024x768x24 &
6161
echo "DISPLAY=:99" >> $GITHUB_ENV
62+
63+
- uses: julia-actions/cache@v3
64+
continue-on-error: true
65+
- uses: julia-actions/julia-buildpkg@v1
6266
- name: Resolve and instantiate test environment
6367
shell: bash
6468
run: |
@@ -70,10 +74,6 @@ jobs:
7074
echo "Copied $TEST_MANIFEST to $TEST_TARGET"
7175
fi
7276
julia --project=test -e "using Pkg; Pkg.resolve(); Pkg.instantiate()"
73-
74-
- uses: julia-actions/cache@v3
75-
continue-on-error: true
76-
- uses: julia-actions/julia-buildpkg@v1
7777
7878
- uses: julia-actions/julia-runtest@v1
7979
env:
@@ -120,6 +120,10 @@ jobs:
120120
run: |
121121
Xvfb :99 -screen 0 1024x768x24 &
122122
echo "DISPLAY=:99" >> $GITHUB_ENV
123+
124+
- uses: julia-actions/cache@v3
125+
continue-on-error: true
126+
- uses: julia-actions/julia-buildpkg@v1
123127
- name: Resolve and instantiate test environment
124128
shell: bash
125129
run: |
@@ -131,10 +135,6 @@ jobs:
131135
echo "Copied $TEST_MANIFEST to $TEST_TARGET"
132136
fi
133137
julia --project=test -e "using Pkg; Pkg.resolve(); Pkg.instantiate()"
134-
135-
- uses: julia-actions/cache@v3
136-
continue-on-error: true
137-
- uses: julia-actions/julia-buildpkg@v1
138138
139139
- uses: julia-actions/julia-runtest@v1
140140
env:

0 commit comments

Comments
 (0)