Skip to content

ci: cleanup workflows 🧹#212

Merged
johannaSommer merged 7 commits intoPrunaAI:mainfrom
GreatBahram:feature-simplify-ci-files
Jul 9, 2025
Merged

ci: cleanup workflows 🧹#212
johannaSommer merged 7 commits intoPrunaAI:mainfrom
GreatBahram:feature-simplify-ci-files

Conversation

@GreatBahram
Copy link
Copy Markdown
Contributor

@GreatBahram GreatBahram commented Jun 23, 2025

Description

If agree with these changes, we can merge this after this PR, here my goal was to simplify the workflow files which means fewer workflows to maintain, changes include:

  • Rename: package_build.yamlbuild.yaml
  • Rename: documentation.yamldocs.yaml
  • Merged linting.yaml & tests.yaml into one → tests.yaml (now includes both linting + test jobs they should run on their runner and in parallel)

Related Issue

Fixes #(issue number)

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Additional Notes

Copy link
Copy Markdown
Member

@johannaSommer johannaSommer left a comment

Choose a reason for hiding this comment

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

Cool changes, we love a good cleanup! 🫧 Just a few things to adjust and let's also rebase once PRs this depends on are merged, then we are GTG!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think we definitely have to keep this file - I understand your comment in the description, we do installation in other places, but we use this workflow to check specifically other python versions and other OS types. Some packages like e.g. gptqmodel are not compatible with all OS

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oh, good to know that Johanna! Then I'll bring it back after we merge this PR

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I restored the installation.yaml file 🙏

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

the badges at the top of the README depend on this naming, can we also update them in this PR?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

sure thing 🫡

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed here:
ce57372

@johannaSommer johannaSommer changed the title 🧹 CI Cleanup ci: cleanup 🧹 Jul 3, 2025
@GreatBahram GreatBahram force-pushed the feature-simplify-ci-files branch 3 times, most recently from 8788466 to 293747b Compare July 9, 2025 07:02
@GreatBahram GreatBahram force-pushed the feature-simplify-ci-files branch from 293747b to 8b84911 Compare July 9, 2025 07:04
@johannaSommer johannaSommer self-requested a review July 9, 2025 11:53
Copy link
Copy Markdown
Member

@johannaSommer johannaSommer left a comment

Choose a reason for hiding this comment

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

Just one comment then we are already there I think!

Comment thread .github/workflows/installation.yaml Outdated

- uses: ./.github/actions/setup-uv-project

- name: Install dependencies
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

One quick question here, is the pip install -e . necessary? In my understanding this is taken care of by the uv setup action

Copy link
Copy Markdown
Contributor Author

@GreatBahram GreatBahram Jul 9, 2025

Choose a reason for hiding this comment

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

I checked this, you're totally right we don't need this 🙏

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Okay if this is the case, then theoretically if we have python strategy matrix in other workflows, we can potentially remove this one 🤔

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ah good point, to clarify, you're suggesting this because uv anyway resolves the packages for all specified python version from the pyproject.toml?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yeah, exactly, since we have the setup-uv-project almost in all workflows

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

💯 thats a great idea, then we could basically keep the installation tests but only with a matrix over macos/windows, agree? i love it, let's tackle it in a separate PR?

@GreatBahram GreatBahram force-pushed the feature-simplify-ci-files branch from 93bf1f2 to 49593c3 Compare July 9, 2025 12:20
- name: Set lint check output
id: lint-check
run: echo "success=true" >> $GITHUB_OUTPUT
test:
Copy link
Copy Markdown
Contributor Author

@GreatBahram GreatBahram Jul 9, 2025

Choose a reason for hiding this comment

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

Note

Here we have the cpu_tests.yaml file content. It still run on the configured runner and in parallel to the linting job.

@GreatBahram GreatBahram requested a review from johannaSommer July 9, 2025 13:28
@johannaSommer johannaSommer changed the title ci: cleanup 🧹 ci: cleanuo workflows 🧹 Jul 9, 2025
@johannaSommer johannaSommer changed the title ci: cleanuo workflows 🧹 ci: cleanup workflows 🧹 Jul 9, 2025
@johannaSommer johannaSommer merged commit bf47b47 into PrunaAI:main Jul 9, 2025
3 checks passed
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