Skip to content

Commit

Permalink
adapt how we install dependencies in the ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Frosty2500 committed Jan 14, 2025
1 parent 81810f9 commit 38a12de
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,11 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Install Python dependencies
# since the sdks dependencies are currently a superset of compliance-tools this is sufficient.
# install the local sdk in editable mode so it does not get overwritten
run: |
python -m pip install --upgrade pip
pip install ../sdk[dev]
pip install -e ../sdk[dev]
pip install .[dev]
- name: Test with coverage + unittest
run: |
coverage run --source=aas_compliance_tool -m unittest
Expand All @@ -231,10 +232,11 @@ jobs:
with:
python-version: ${{ env.X_PYTHON_VERSION }}
- name: Install Python dependencies
# since the sdks dependencies are currently a superset of compliance-tools this is sufficient.
# install the local sdk in editable mode so it does not get overwritten
run: |
python -m pip install --upgrade pip
pip install ../sdk[dev]
pip install -e ../sdk[dev]
pip install .[dev]
- name: Check typing with MyPy
run: |
mypy ./aas_compliance_tool test
Expand All @@ -256,10 +258,11 @@ jobs:
with:
python-version: ${{ env.X_PYTHON_VERSION }}
- name: Install Python dependencies
# since the sdks dependencies are currently a superset of compliance-tools this is sufficient.
# install the local sdk in editable mode so it does not get overwritten
run: |
python -m pip install --upgrade pip
pip install ../sdk[dev]
pip install -e ../sdk[dev]
pip install .[dev]
- name: Check typing with MyPy
run: |
mypy <(codeblocks python README.md)
Expand Down
3 changes: 3 additions & 0 deletions compliance_tool/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ dev = [
"codeblocks",
"coverage",
]
# if you want local changes to the sdk to affect the compliance-tool first install
# only this with pip install .[local-sdk] --no-deps then install the other requirements
local-sdk = ["-e ../sdk"]

[project.urls]
"Homepage" = "https://github.com/eclipse-basyx/basyx-python-sdk"
Expand Down

0 comments on commit 38a12de

Please sign in to comment.