Skip to content

Commit fe55b02

Browse files
Try this one
1 parent 5f5aefe commit fe55b02

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/testing.yml

+16-1
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,23 @@ jobs:
196196
- name: Install test requirements
197197
run: pip install -r requirements-test.txt
198198

199+
- name: Prepate setup.py for test run
200+
run: |
201+
touch setup.py
202+
echo "try:" >> setup.py
203+
echo " from setuptools import setup" >> setup.py
204+
echo "except ImportError:" >> setup.py
205+
echo " from distutils.core import setup" >> setup.py
206+
echo "cmdclass={}" >> setup.py
207+
echo "try:" >> setup.py
208+
echo " from test.setup_command import test" >> setup.py
209+
echo " cmdclass[test] = test" >> setup.py
210+
echo "except ImportError:" >> setup.py
211+
echo " pass" >> setup.py
212+
echo "setup(cmdclass=cmdclass)" >> setup.py
213+
199214
- name: Run tests
200-
run: python -m unittest
215+
run: make test
201216

202217
run_tests_ce_windows:
203218
# We want to run on external PRs, but not on our own internal

0 commit comments

Comments
 (0)