Skip to content

Commit

Permalink
feat: Update GitHub Actions workflow for Python testing
Browse files Browse the repository at this point in the history
fix: Replace Unittest with Unittest discover command
patch: Remove deprecated tests.py file
  • Loading branch information
Simatwa committed Nov 7, 2024
1 parent bc74a12 commit b01ccc3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Python package
name: Unit Test

on:
push:
Expand Down Expand Up @@ -36,4 +36,4 @@ jobs:
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with Unittest
run: |
python -m tests.py -fv
python -m unittest discover -s tests -p 'test_*.py' -f -v
Empty file added tests/__init__.py
Empty file.
File renamed without changes.

0 comments on commit b01ccc3

Please sign in to comment.