Skip to content

Commit

Permalink
added push
Browse files Browse the repository at this point in the history
  • Loading branch information
yardee committed Nov 3, 2023
1 parent 34dff02 commit 2b48af8
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Push actions

on:
push:
branches:
- master

jobs:
python-tests:
runs-on: "ubuntu-latest"
name: Run Python tests
env:
WORKING_DIRECTORY: "python"
steps:
- uses: actions/checkout@v4
- name: Set up Python 3
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install dependencies
working-directory: ${{ env.WORKING_DIRECTORY }}
run: |
python -m pip install --upgrade pip
python -m pip install pytest
python -m pip install --editable ./src/unece_excel_parser
- name: Test with pytest
working-directory: ${{ env.WORKING_DIRECTORY }}
run: |
pytest
2 changes: 1 addition & 1 deletion python/src/unece_excel_parser/lib/normalizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Normalizer:

@staticmethod
def is_empty(text: any) -> bool:
return text is None or str(text) == "nan" or str(text) == ""
return text is None or str(text) == "nan" or str(text).strip() == ""

@staticmethod
def normalize_value(value) -> str | None:
Expand Down

0 comments on commit 2b48af8

Please sign in to comment.