Merged
Conversation
2. Run CLI test with CPU
…or optimal GPU choice
…stPyPI conditions
There was a problem hiding this comment.
Pull Request Overview
This PR adds a new GitHub Actions workflow to build and deploy the unigradicon Python package with an optional Test PyPI publish step, alongside a minor version bump in setup.cfg.
- Bumps package version to 1.0.4 in setup.cfg
- Introduces a build and deploy workflow that checks organization membership, builds the package, runs tests on both GPU and CPU, and optionally publishes to Test PyPI
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| setup.cfg | Updated package version for release |
| .github/workflows/build_and_deploy.yml | New workflow file implementing build, test, and deployment logic |
Comments suppressed due to low confidence (1)
.github/workflows/build_and_deploy.yml:82
- [nitpick] The step name 'Install dependencies' is used twice with different purposes; consider renaming the second occurrence to something like 'Download test assets' for clarity.
- name: Install dependencies
basardemir
pushed a commit
that referenced
this pull request
Mar 28, 2026
* Test build * Prepare test setting * Add 'Add_build_workflow' branch to trigger build and deploy workflow * Add step in the workflow to find an empty gpu * 1. improve the GPU selection logic 2. Run CLI test with CPU * Enhance GPU selection logic with detailed logging and re-evaluation for optimal GPU choice * Use another GPU. * Fix CUDA_VISIBLE_DEVICES environment variable type for GPU unit tests * Remove explicit GPU environment variable for unit tests to allow dynamic selection * Update build workflow to require upload options * Refactor build workflow: rename job, update upload steps, and clean up commented code * Update build workflow: remove upload_to_pypi input and comment out TestPyPI conditions * Fix typo. * fix bug * Revert the version back to 1.0.4 * Fix the version number * Refactor workflow: remove process.exit call and rename step to download test data
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add build workflow. This workflow can be triggered manually by a member of UNCBIAG.
It follows this logic: