No need to set PYTHONPATH before testing
This commit is contained in:
parent
e088d82dc5
commit
074384e304
2 changed files with 4 additions and 4 deletions
5
.github/workflows/pythonpackage.yml
vendored
5
.github/workflows/pythonpackage.yml
vendored
|
|
@ -51,7 +51,6 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
python -m pip install dist/sqlcipher3_wheels-*.tar.gz
|
python -m pip install dist/sqlcipher3_wheels-*.tar.gz
|
||||||
mv sqlcipher3 sqlcipher3_ &&
|
mv sqlcipher3 sqlcipher3_ &&
|
||||||
PYTHONPATH=.:$PYTHONPATH python tests/ &&
|
|
||||||
mv sqlcipher3_ sqlcipher3
|
mv sqlcipher3_ sqlcipher3
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
|
|
@ -160,9 +159,7 @@ jobs:
|
||||||
CIBW_BUILD_FRONTEND: build
|
CIBW_BUILD_FRONTEND: build
|
||||||
CIBW_BUILD: ${{ matrix.cibw_build }}
|
CIBW_BUILD: ${{ matrix.cibw_build }}
|
||||||
CIBW_ARCHS: ${{ matrix.cibw_archs }}
|
CIBW_ARCHS: ${{ matrix.cibw_archs }}
|
||||||
CIBW_ENVIRONMENT: >
|
CIBW_ENVIRONMENT: SQLCIPHER3_COMPILE_TARGET=${{ matrix.compile_target }}
|
||||||
SQLCIPHER3_COMPILE_TARGET=${{ matrix.compile_target }}
|
|
||||||
PYTHONPATH={project}:$PYTHONPATH
|
|
||||||
CIBW_TEST_COMMAND: >
|
CIBW_TEST_COMMAND: >
|
||||||
mv {project}/sqlcipher3 {project}/sqlcipher3_ &&
|
mv {project}/sqlcipher3 {project}/sqlcipher3_ &&
|
||||||
python {project}/tests/ &&
|
python {project}/tests/ &&
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,9 @@
|
||||||
import optparse
|
import optparse
|
||||||
import sys
|
import sys
|
||||||
import unittest
|
import unittest
|
||||||
|
from os.path import dirname
|
||||||
|
|
||||||
|
sys.path.append(dirname(dirname(__file__)))
|
||||||
|
|
||||||
from tests.backup import suite as backup_suite
|
from tests.backup import suite as backup_suite
|
||||||
from tests.dbapi import suite as dbapi_suite
|
from tests.dbapi import suite as dbapi_suite
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue