Skip to content

Commit 3081f27

Browse files
CCL-467: install the package in CI so packaging tests are not skipped
The hand-written packaging tests arriving with the platform-side sync read the built distribution's metadata through importlib.metadata and skip when no distribution is installed, which is exactly the regression they guard against (every release up to 4.28.0 published requires_python: None). Installing the package also makes --cov measure the installed artifact.
1 parent ff7213f commit 3081f27

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/python.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ jobs:
3838
python -m pip install --upgrade pip
3939
pip install -r requirements.txt
4040
pip install -r test-requirements.txt
41+
# install the package itself: the packaging tests read the built distribution's metadata
42+
# through importlib.metadata and skip silently when it is absent
43+
pip install .
4144
- name: Test with pytest
4245
run: |
4346
pytest --cov=platform_api_python_client

0 commit comments

Comments
 (0)