Skip to content

Commit

Permalink
Add Python path
Browse files Browse the repository at this point in the history
  • Loading branch information
kesmit13 committed Jan 24, 2024
1 parent 159063a commit 75126e1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ jobs:
pip install -r requirements.txt
pip install -r test-requirements.txt
- name: Determine path to installed package
run: |
echo TEST_CONFIG_FILE=$(pwd)/setup.cfg >> $GITHUB_ENV
python3 -c 'import os; print("TEST_HOME=" + os.path.dirname(os.__file__) + "/site-packages/singlestoredb/tests")' >> $GITHUB_ENV
- name: Build sdist
if: runner.os == 'Linux'
run: |
Expand All @@ -101,7 +106,7 @@ jobs:
CIBW_ARCHS_MACOS: "universal2"
CIBW_BUILD: "cp39-*"
CIBW_SKIP: "pp* *-musllinux* *-manylinux_i686"
CIBW_TEST_COMMAND: "pytest {project}/singlestoredb/tests/test_basics.py"
CIBW_TEST_COMMAND: "pytest --config-file=${{ env.TEST_CONFIG_FILE }} ${{ env.TEST_HOME }}/test_basics.py"
CIBW_TEST_REQUIRES: "pytest"
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'"
PYTHONPATH: ${{ github.workspace }}
Expand Down

0 comments on commit 75126e1

Please sign in to comment.