Skip to content

Commit 18ca871

Browse files
committed
Fix command to run tests on pycryptodomex
1 parent d298477 commit 18ca871

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/integration.yml

+12-3
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,13 @@ jobs:
5959
pip install .
6060
6161
- name: Test
62+
shell: bash
6263
run: |
63-
python -m Crypto.SelfTest
64+
if [[ -f .separate_namespace ]]; then
65+
python -m Cryptodome.SelfTest
66+
else
67+
python -m Crypto.SelfTest
68+
fi
6469
6570
build_python_27:
6671
# GitHub Actions will not setup Python 2.7 since June 2023
@@ -114,9 +119,13 @@ jobs:
114119
python -m pip install .
115120
116121
- name: Test
122+
shell: bash
117123
run: |
118-
python -m Crypto.SelfTest
119-
124+
if [[ -f .separate_namespace ]]; then
125+
python -m Cryptodome.SelfTest
126+
else
127+
python -m Crypto.SelfTest
128+
fi
120129
mypy:
121130
runs-on: ubuntu-latest
122131
steps:

0 commit comments

Comments
 (0)