Fix wheel testing

This commit is contained in:
laggykiller 2024-02-25 11:32:59 +08:00
parent fda9696a91
commit 361cefef93

View file

@ -50,9 +50,9 @@ jobs:
- name: Test sdist
run: |
python -m pip install dist/sqlcipher3-wheels-*.tar.gz
mv sqlcipher3 sqlcipher3_
python -m test
mv sqlcipher3_ sqlcipher3
mv {project}/sqlcipher3 {project}/sqlcipher3_ &&
python -m unittest discover -t {project} -s test -p *.py &&
mv {project}/sqlcipher3_ {project}/sqlcipher3
- uses: actions/upload-artifact@v3
with:
@ -158,10 +158,9 @@ jobs:
CIBW_ARCHS: ${{ matrix.cibw_archs }}
CIBW_ENVIRONMENT: SQLCIPHER3_COMPILE_TARGET=${{ matrix.compile_target }}
CIBW_TEST_COMMAND: >
cd {project} &&
mv sqlcipher3 sqlcipher3_ &&
python -m test &&
mv sqlcipher3_ sqlcipher3
mv {project}/sqlcipher3 {project}/sqlcipher3_ &&
python -m unittest discover -t {project} -s test -p *.py &&
mv {project}/sqlcipher3_ {project}/sqlcipher3
- uses: actions/upload-artifact@v3
with: