Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ci integration #28

Merged
merged 23 commits into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from 22 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CI Check
on: [push, pull_request, workflow_dispatch]
jobs:
clean-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.10', '3.11']
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Getting repository
uses: actions/checkout@v4
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Install pytest and package
run: |
pip install pytest
pip install -e .
- name: Execute PyTest
run: pytest
6 changes: 3 additions & 3 deletions mailcom/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,12 @@ def init_transformers():
return ner_recognizer


def check_dir(path: Path):
def check_dir(path: str):
# check if directory is there
return path.exists()
return os.path.exists(path)


def make_dir(path: Path):
def make_dir(path: str):
# make directory at path
os.makedirs(path + "/")

Expand Down