Skip to content

Commit

Permalink
add tests to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Emterry committed Feb 29, 2024
1 parent 99c1082 commit b762f5c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ jobs:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: test
run: |
python -m unittest discover -s test -p '*_test.py'
- name: Build Docker image
uses: docker/build-push-action@74166686865cdc289a02f214871fb53447b73447 # v5.1.0
with:
context: .
push: false


8 changes: 8 additions & 0 deletions test/truthy_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import unittest

class TestMathOperations(unittest.TestCase):
def test_true(self):
self.assertTrue(True)

if __name__ == '__main__':
unittest.main()

0 comments on commit b762f5c

Please sign in to comment.