Skip to content

Commit 8548d21

Browse files
committed
[patch] Use editable install in CI workflows
Replace `pip install .[dev]` with `pip install --editable .[dev]` in python-package.yml and python-release.yml so the CI runs tests and linters against an editable local install. This ensures source changes in the repo (src layout) are reflected without reinstalling the package during the job.
1 parent 1eccd65 commit 8548d21

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
sed -i "s#__version__ = \"100.0.0\"#__version__ = \"${{ env.VERSION_NOPREREL }}\"#g" ${GITHUB_WORKSPACE}/src/mas/devops/__init__.py
4646
cat ${GITHUB_WORKSPACE}/src/mas/devops/__init__.py
4747
python -m pip install --upgrade pip
48-
pip install .[dev]
48+
pip install --editable .[dev]
4949
python -m pytest
5050
5151
- name: Lint with flake8

.github/workflows/python-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
sed -i "s#__version__ = \"100.0.0\"#__version__ = \"${{ env.VERSION_NOPREREL }}\"#g" ${GITHUB_WORKSPACE}/src/mas/devops/__init__.py
4545
cat ${GITHUB_WORKSPACE}/src/mas/devops/__init__.py
4646
python -m pip install --upgrade pip
47-
pip install .[dev]
47+
pip install --editable .[dev]
4848
python -m pytest
4949
5050
# 3. Flake8 Linting

0 commit comments

Comments
 (0)