Skip to content

Commit b01ccc3

Browse files
committed
feat: Update GitHub Actions workflow for Python testing
fix: Replace Unittest with Unittest discover command patch: Remove deprecated tests.py file
1 parent bc74a12 commit b01ccc3

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

.github/workflows/python-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
22
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
33

4-
name: Python package
4+
name: Unit Test
55

66
on:
77
push:
@@ -36,4 +36,4 @@ jobs:
3636
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
3737
- name: Test with Unittest
3838
run: |
39-
python -m tests.py -fv
39+
python -m unittest discover -s tests -p 'test_*.py' -f -v

tests/__init__.py

Whitespace-only changes.
File renamed without changes.

0 commit comments

Comments
 (0)