Fix testing

This commit is contained in:
laggykiller 2024-02-25 12:54:43 +08:00
parent 6ffbe31c43
commit 44b9ffbfa0
10 changed files with 10 additions and 10 deletions

View file

@ -51,7 +51,7 @@ 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_ &&
python -m test && python -m unittest &&
mv sqlcipher3_ sqlcipher3 mv sqlcipher3_ sqlcipher3
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v3
@ -159,7 +159,7 @@ jobs:
CIBW_ENVIRONMENT: SQLCIPHER3_COMPILE_TARGET=${{ matrix.compile_target }} CIBW_ENVIRONMENT: SQLCIPHER3_COMPILE_TARGET=${{ matrix.compile_target }}
CIBW_TEST_COMMAND: > CIBW_TEST_COMMAND: >
mv {project}/sqlcipher3 {project}/sqlcipher3_ && mv {project}/sqlcipher3 {project}/sqlcipher3_ &&
python -m unittest discover -t {project} -s test -p *.py && python -m unittest discover -s {project} &&
mv {project}/sqlcipher3_ {project}/sqlcipher3 mv {project}/sqlcipher3_ {project}/sqlcipher3
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v3

View file

@ -2,14 +2,14 @@ import optparse
import sys import sys
import unittest import unittest
from test.backup import suite as backup_suite from test.test_backup import suite as backup_suite
from test.dbapi import suite as dbapi_suite from test.test_dbapi import suite as dbapi_suite
from test.factory import suite as factory_suite from test.test_factory import suite as factory_suite
from test.hooks import suite as hooks_suite from test.test_hooks import suite as hooks_suite
from test.regression import suite as regression_suite from test.test_regression import suite as regression_suite
from test.transactions import suite as transactions_suite from test.test_transactions import suite as transactions_suite
from test.ttypes import suite as types_suite from test.test_ttypes import suite as types_suite
from test.userfunctions import suite as userfunctions_suite from test.test_userfunctions import suite as userfunctions_suite
def test(verbosity=1, failfast=False): def test(verbosity=1, failfast=False):