Skip to content

Add build workflow#53

Merged
lintian-a merged 17 commits intomainfrom
Add_build_workflow
Mar 6, 2026
Merged

Add build workflow#53
lintian-a merged 17 commits intomainfrom
Add_build_workflow

Conversation

@lintian-a
Copy link
Copy Markdown
Collaborator

Add build workflow. This workflow can be triggered manually by a member of UNCBIAG.

It follows this logic:

  1. Check the membership of the account that triggers the action.
  2. Build the Python package.
  3. Run unit tests with the Python package.
  4. Run tests on the CLI.
  5. Upload the Python package as an artifact to the action.
  6. Upload the Python package to Test PyPI if specified by the user who triggers the action.
  7. Install from Test PyPI.
  8. Run tests with the Test PyPI installation.

@lintian-a lintian-a requested a review from Copilot May 25, 2025 22:10
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

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

Comment thread .github/workflows/build_and_deploy.yml Outdated
@lintian-a lintian-a marked this pull request as draft May 26, 2025 12:15
@lintian-a lintian-a marked this pull request as ready for review March 6, 2026 23:45
@lintian-a lintian-a merged commit 3e83a92 into main Mar 6, 2026
5 checks passed
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
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.

2 participants