Skip to content

DXE-6465 Add GithubActions workflow for unit tests#132

Open
artbookspirit wants to merge 6 commits intomasterfrom
feature/DXE-6465-implement-edgegrid-python-unit-tests-in-github-actions
Open

DXE-6465 Add GithubActions workflow for unit tests#132
artbookspirit wants to merge 6 commits intomasterfrom
feature/DXE-6465-implement-edgegrid-python-unit-tests-in-github-actions

Conversation

@artbookspirit
Copy link
Copy Markdown
Collaborator

No description provided.

@artbookspirit artbookspirit requested a review from Copilot March 19, 2026 16:03
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds CI coverage for running Python unit tests in GitHub Actions, while also removing the legacy pkg_resources/namespace_packages namespace-package setup from the distribution.

Changes:

  • Add a GitHub Actions workflow to run pytest on PRs and pushes to main.
  • Remove pkg_resources namespace declaration and namespace_packages=['akamai'] packaging configuration.
  • Remove the manually-added setuptools entry from dev-requirements.txt.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
setup.py Removes namespace_packages configuration for akamai.
dev-requirements.txt Removes manually-added setuptools note/dependency.
akamai/__init__.py Removes pkg_resources.declare_namespace call.
.github/workflows/unit-tests.yml Introduces CI workflow running pytest across a Python version matrix.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 6 to 9
description='{OPEN} client authentication protocol for python-requests',
url='https://github.com/akamai/AkamaiOPEN-edgegrid-python',
namespace_packages=['akamai'],
packages=find_packages(),
python_requires=">=3.10",
@@ -1,2 +1 @@
"""Library provides an authentication handler for requests"""
Comment on lines +27 to +35
- name: Install dependencies
run: pip install -r dev-requirements.txt

- name: Run unit tests
run: |
pytest \
--junitxml test/tests.xml \
--cov-report xml:test/coverage/cobertura-coverage.xml \
--cov=akamai
Comment on lines 6 to 9
description='{OPEN} client authentication protocol for python-requests',
url='https://github.com/akamai/AkamaiOPEN-edgegrid-python',
namespace_packages=['akamai'],
packages=find_packages(),
python_requires=">=3.10",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants