File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 81
81
pip install -r requirements.txt
82
82
pip install -r test-requirements.txt
83
83
84
+ - name : Determine path to installed package
85
+ run : |
86
+ echo TEST_CONFIG_FILE=$(pwd)/setup.cfg >> $GITHUB_ENV
87
+ python3 -c 'import os; print("TEST_HOME=" + os.path.dirname(os.__file__) + "/site-packages/singlestoredb/tests")' >> $GITHUB_ENV
88
+
84
89
- name : Build sdist
85
90
if : runner.os == 'Linux'
86
91
run : |
@@ -101,7 +106,7 @@ jobs:
101
106
CIBW_ARCHS_MACOS : " universal2"
102
107
CIBW_BUILD : " cp39-*"
103
108
CIBW_SKIP : " pp* *-musllinux* *-manylinux_i686"
104
- CIBW_TEST_COMMAND : " pytest {project}/singlestoredb/tests /test_basics.py"
109
+ CIBW_TEST_COMMAND : " pytest --config-file=${{ env.TEST_CONFIG_FILE }} ${{ env.TEST_HOME }} /test_basics.py"
105
110
CIBW_TEST_REQUIRES : " pytest"
106
111
CIBW_ENVIRONMENT : " SINGLESTOREDB_URL='mysql://${{ secrets.CLUSTER_USER }}:${{ secrets.CLUSTER_PASSWORD }}@${{ needs.setup-database.outputs.cluster-host }}:3306/${{ needs.setup-database.outputs.cluster-database }}?pure_python=0'"
107
112
PYTHONPATH : ${{ github.workspace }}
You can’t perform that action at this time.
0 commit comments