Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use uv for CI #22

Merged
merged 1 commit into from
Nov 4, 2024
Merged

Use uv for CI #22

merged 1 commit into from
Nov 4, 2024

Conversation

ml-evs
Copy link
Member

@ml-evs ml-evs commented Nov 1, 2024

This could be followed up with a PR that uses uv inside Docker too and removes our requirements.txt, but baby steps

@@ -49,7 +49,6 @@ dependencies = [
[project.optional-dependencies]
test = [
"pytest",
"marda-extractors-api[formats] @ git+https://github.com/datatractor/yard.git",
Copy link
Contributor

Choose a reason for hiding this comment

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

Good catch.


- name: Install dependencies
run: pip install .
run: |
uv sync --locked --all-extras --dev
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess I should read the manual on what uv actually does here, but if it works, it works.

Copy link
Member Author

Choose a reason for hiding this comment

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

Just syncs the current environment with the dependencies in the lock file. For this repo I don't think we need to bother with too much dependency auto updates but we could add a scheduled job that updates the lock

@ml-evs ml-evs merged commit 4e8887a into main Nov 4, 2024
3 checks passed
@ml-evs ml-evs deleted the ml-evs/uv-ci branch November 4, 2024 15:11
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