summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2020-12-08 06:48:58 -0800
committerGitHub <noreply@github.com>2020-12-08 06:48:58 -0800
commitef4998692c753a635eba58975ae80834dfc14538 (patch)
treef959bde2fae72c30e129520023b698a9220bbdf2 /.github
parentf655908d75010db66ec88e4023ed0982b8b00f94 (diff)
downloadpycparser-ef4998692c753a635eba58975ae80834dfc14538.tar.gz
Simplify test execution (#400)
Use the stdlib standard entry point for running tests through the command: python -m unittest discover Docs: https://docs.python.org/3/library/unittest.html#unittest-test-discovery This automatically looks for files with the test_ prefix and runs them as tests. This removes the need for the custom test entry point script, all_tests.py.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml3
1 files changed, 1 insertions, 2 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 212f0bb..40c5b02 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -24,5 +24,4 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Test
- run: |
- python tests/all_tests.py
+ run: python -m unittest discover