@@ -51,10 +51,11 @@ jobs:
5151 key : ${{ runner.os }}-go-${{ hashFiles('go.mod') }}
5252 restore-keys : |
5353 ${{ runner.os }}-go-
54- - name : Install CCM
55- run : pip install "git+https://github.com/riptano/ccm.git@${CCM_VERSION}"
54+ - name : Setup environment
55+ uses : ./.github/actions/setup-environment
5656 - name : Start cassandra nodes
5757 run : |
58+ source ~/venv/bin/activate
5859 VERSION=${{ matrix.cassandra_version }}
5960 keypath="$(pwd)/testdata/pki"
6061 conf=(
@@ -107,6 +108,7 @@ jobs:
107108 echo "JVM_EXTRA_OPTS=$JVM_EXTRA_OPTS" >> $GITHUB_ENV
108109 - name : Integration tests
109110 run : |
111+ source ~/venv/bin/activate
110112 export JVM_EXTRA_OPTS="${{env.JVM_EXTRA_OPTS}}"
111113 go test -v -tags "${{ matrix.tags }} gocql_debug" -timeout=5m -race ${{ env.args }}
112114 - name : ' Save ccm logs'
@@ -135,10 +137,11 @@ jobs:
135137 - uses : actions/setup-go@v4
136138 with :
137139 go-version : ${{ matrix.go }}
138- - name : Install CCM
139- run : pip install "git+https://github.com/riptano/ccm.git@${CCM_VERSION}"
140+ - name : Setup environment
141+ uses : ./.github/actions/setup-environment
140142 - name : Start cassandra nodes
141143 run : |
144+ source ~/venv/bin/activate
142145 VERSION=${{ matrix.cassandra_version }}
143146 keypath="$(pwd)/testdata/pki"
144147 conf=(
@@ -197,5 +200,6 @@ jobs:
197200 sleep 30s
198201 - name : Integration tests
199202 run : |
203+ source ~/venv/bin/activate
200204 export JVM_EXTRA_OPTS="${{env.JVM_EXTRA_OPTS}}"
201205 go test -v -run=TestAuthentication -tags "${{ matrix.tags }} gocql_debug" -timeout=15s -runauth ${{ env.args }}
0 commit comments