diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 6a0c304..5d85c92 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -10,8 +10,12 @@ on: jobs: build: - runs-on: ubuntu-latest - + strategy: + fail-fast: false + matrix: + python-version: [ "3.8", "3.9"] + os: [ ubuntu-latest ] + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 - name: Set up Ubuntu @@ -19,7 +23,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v2 with: - python-version: '3.9' + python-version: ${{ matrix.python-version }} - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/pyproject.toml b/pyproject.toml index 4cc6fd4..30262dc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "hexagonal-py" -version = "0.1.3" +version = "0.1.4" description = """Hexagonal Coherence Check""" readme = 'README.md' authors = ["rfrezino "] diff --git a/src/hexagonal/services/raw_python_project_importer.py b/src/hexagonal/services/raw_python_project_importer.py index 1a18c72..b6cd5f2 100644 --- a/src/hexagonal/services/raw_python_project_importer.py +++ b/src/hexagonal/services/raw_python_project_importer.py @@ -18,7 +18,7 @@ def source_folder_full_path(self): def __init__(self, source_folder_full_path: str, hexagonal_composition: HexagonalComposition, excluded_folders: List[str]): - if not source_folder_full_path.startswith('/'): + if not os.path.isabs(source_folder_full_path): raise Exception("The param source_folder_full_path must have the source's folder full path.") if not os.path.isdir(source_folder_full_path):