diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cc74c727d..6d6dd634d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -74,9 +74,10 @@ jobs: python3 -m venv ~/venv ~/venv/bin/pip install setuptools ~/venv/bin/pip install "git+https://github.com/riptano/ccm.git@${CCM_VERSION}" - echo "PATH=~/venv/bin:$PATH" >> $GITHUB_ENV + # echo "PATH=~/venv/bin:$PATH" >> $GITHUB_ENV - name: Start cassandra nodes run: | + source ~/venv/bin/activate VERSION=${{ matrix.cassandra_version }} keypath="$(pwd)/testdata/pki" conf=( @@ -129,6 +130,7 @@ jobs: echo "JVM_EXTRA_OPTS=$JVM_EXTRA_OPTS" >> $GITHUB_ENV - name: Integration tests run: | + source ~/venv/bin/activate export JVM_EXTRA_OPTS="${{env.JVM_EXTRA_OPTS}}" go test -v -tags "${{ matrix.tags }} gocql_debug" -timeout=5m -race ${{ env.args }} - name: 'Save ccm logs' @@ -180,9 +182,10 @@ jobs: python3 -m venv ~/venv ~/venv/bin/pip install setuptools ~/venv/bin/pip install "git+https://github.com/riptano/ccm.git@${CCM_VERSION}" - echo "PATH=~/venv/bin:$PATH" >> $GITHUB_ENV + # echo "PATH=~/venv/bin:$PATH" >> $GITHUB_ENV - name: Start cassandra nodes run: | + source ~/venv/bin/activate VERSION=${{ matrix.cassandra_version }} keypath="$(pwd)/testdata/pki" conf=( @@ -241,5 +244,6 @@ jobs: sleep 30s - name: Integration tests run: | + source ~/venv/bin/activate export JVM_EXTRA_OPTS="${{env.JVM_EXTRA_OPTS}}" go test -v -run=TestAuthentication -tags "${{ matrix.tags }} gocql_debug" -timeout=15s -runauth ${{ env.args }}