diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 0209620..140c4f6 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -74,7 +74,7 @@ jobs: - uses: ./.github/actions/setup-python - name: UnitTest working-directory: ./python - run: python -m unittest discover ./test + run: pytest . mypy: timeout-minutes: 10 runs-on: ubuntu-latest diff --git a/python/README.md b/python/README.md index 9aef4fb..e4b7050 100644 --- a/python/README.md +++ b/python/README.md @@ -2,12 +2,31 @@ - Python 3.14.4 -## 2. Execution +## 2. Install Libraries via requirements.txt + +```command +$ pip install -r requirements.txt +``` + +## 3. Execution ```command -$ cd ./python $ python main.py Provide your username(Default: hayat01sh1da): hayat01sh1da Provide your preferred unit d(daily - default), w(weekly) or m: d Provide the specific year you would like to create working report templates for(Default: the current year): 2024 ``` + +## 4. Unit Test + +```command +$ pytest +============================= test session starts ============================== +platform linux -- Python 3.14.4, pytest-9.0.3, pluggy-1.6.0 +rootdir: /mnt/c/Users/binlh/Documents/development/template-creators/python +collected 8 items + +test/test_application.py ........ [100%] + +============================== 8 passed in 5.66s =============================== +```