Skip to content

Commit 6c4b463

Browse files
authored
Fixing pip cache by starting dgraph instance in /tmp (#175)
1 parent a7644b7 commit 6c4b463

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,15 @@ jobs:
144144
env:
145145
DGRAPH_TEST_CLUSTER_VERSION: ${{ matrix.dgraph-version }}
146146
run: |
147-
echo "::set-output name=docker::$(./dgraph-instance.background.sh)"
147+
cp -v dgraph-instance.*.sh /tmp/
148+
echo "::set-output name=docker::$(/tmp/dgraph-instance.background.sh)"
148149
sleep 10
149150
if [[ "${{ matrix.dgraph-version }}" != "20.03."* ]]
150151
then
151-
./dgraph-instance.drop-all.sh
152+
/tmp/dgraph-instance.drop-all.sh
152153
fi
153-
./dgraph-instance.schema.sh
154-
./dgraph-instance.insert.sh
154+
/tmp/dgraph-instance.schema.sh
155+
/tmp/dgraph-instance.insert.sh
155156
shell: bash
156157

157158
- name: Scala Test
@@ -276,14 +277,15 @@ jobs:
276277
env:
277278
DGRAPH_TEST_CLUSTER_VERSION: ${{ matrix.dgraph-version }}
278279
run: |
279-
echo "::set-output name=docker::$(./dgraph-instance.background.sh)"
280+
cp -v dgraph-instance.*.sh /tmp/
281+
echo "::set-output name=docker::$(/tmp/dgraph-instance.background.sh)"
280282
sleep 10
281283
if [[ "${{ matrix.dgraph-version }}" != "20.03."* ]]
282284
then
283-
./dgraph-instance.drop-all.sh
285+
/tmp/dgraph-instance.drop-all.sh
284286
fi
285-
./dgraph-instance.schema.sh
286-
./dgraph-instance.insert.sh
287+
/tmp/dgraph-instance.schema.sh
288+
/tmp/dgraph-instance.insert.sh
287289
shell: bash
288290

289291
- name: Integration Tests
@@ -297,12 +299,6 @@ jobs:
297299
${SPARK_HOME}/bin/spark-submit --packages uk.co.gresearch.spark:${ARTIFACT_ID}:${VERSION},graphframes:graphframes:${{ steps.params.outputs.graphframes-version }}-spark3.0-s_2.12 --class uk.co.gresearch.spark.dgraph.connector.example.ExampleApp examples/scala/target/spark-dgraph-connector-examples_*.jar
298300
shell: bash
299301

300-
- name: Stop Dgraph cluster
301-
if: always() && steps.dgraph.outcome == 'success'
302-
run: |
303-
docker stop ${{ steps.dgraph.outputs.docker }}
304-
shell: bash
305-
306302
delete_binaries:
307303
name: "Delete Binaries"
308304
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)