Skip to content

Pytest#70

Merged
rathaROG merged 2 commits into
masterfrom
pytest
Feb 23, 2026
Merged

Pytest#70
rathaROG merged 2 commits into
masterfrom
pytest

Conversation

@rathaROG

Copy link
Copy Markdown
Collaborator

No description provided.

This workflow file defines multiple jobs for testing a Python package across different operating systems and Python versions, including building the package and running tests using pytest.
@rathaROG rathaROG linked an issue Feb 23, 2026 that may be closed by this pull request
@rathaROG rathaROG requested a review from Copilot February 23, 2026 12:03
@rathaROG rathaROG merged commit fd8fd9f into master Feb 23, 2026
49 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds a new “full” GitHub Actions workflow that runs pytest across a broad OS/Python matrix, and lightly renames steps in the existing “simple” workflow.

Changes:

  • Renamed a couple of steps in test_simple.yaml (step name text only).
  • Added test_full.yaml workflow to build wheels, install, and run pytest on multiple OS/Python versions.
  • Uploads built wheels as artifacts per matrix entry.

Reviewed changes

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

File Description
.github/workflows/test_simple.yaml Step name text updates (no functional CI changes).
.github/workflows/test_full.yaml New workflow to build/install package and run pytest across OS/Python matrix.

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

Comment on lines +26 to +33
- name: 👷 Test build from source ⚒️
run: python -m build --wheel
- name: 👩‍💻 Test install from GitHub 🌐
run: pip install git+https://github.com/gatagat/lap.git
- name: 🧪 Run full tests with pytest 👨‍⚖️
run: |
pip install -U pytest pytest-timeout numpy scipy
pytest -v --pyargs lap.tests

Copilot AI Feb 23, 2026

Copy link

Choose a reason for hiding this comment

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

This workflow checks out the PR code and builds a wheel from the local workspace, but then installs lap from the default branch on GitHub (gatagat/lap.git) before running tests. That means the pytest run can execute against upstream code rather than the code under test. Prefer installing the locally built wheel (e.g., from dist/*.whl) or installing the checked-out source (pip install .). If you truly want to install from git, pin the install to the current ref/sha (and repository) so the tests match the checked-out code.

Copilot uses AI. Check for mistakes.
Comment on lines +28 to +29
- name: 👩‍💻 Test install from GitHub 🌐
run: pip install git+https://github.com/gatagat/lap.git

Copilot AI Feb 23, 2026

Copy link

Choose a reason for hiding this comment

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

The install URL is hard-coded to gatagat/lap, which will be wrong when this workflow runs in forks or other repositories. Use the current repository context (e.g., ${{ github.repository }}) or avoid a git URL entirely by installing from the checked-out workspace / built artifact so CI validates the correct code.

Copilot uses AI. Check for mistakes.
Comment on lines +21 to +27
- name: Prepare for build
run: |
python -m pip install --upgrade pip
pip install "setuptools>=67.8.0"
pip install wheel build
- name: 👷 Test build from source ⚒️
run: python -m build --wheel

Copilot AI Feb 23, 2026

Copy link

Choose a reason for hiding this comment

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

The same 'Prepare for build' + build-wheel step sequence is duplicated across all three jobs. Consider extracting these into a reusable workflow (workflow_call) or a composite action to keep the workflow DRY and make future edits (e.g., tool versions, build flags) less error-prone.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Run all tests

2 participants