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

Add workflow for pytest #29

Closed
wants to merge 0 commits into from
Closed

Add workflow for pytest #29

wants to merge 0 commits into from

Conversation

bbrondel
Copy link
Collaborator

This change adds a GitHub workflow for pytest and makes modifications that allow the tests to run. It does not correct one failing test. This PR includes changes responsive to comments by @ktlim and @timj. It doesn't fully address DM-45314, but I'd like to go ahead and get this in and then add another ticket.

Copy link
Member

@timj timj left a comment

Choose a reason for hiding this comment

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

Some quick comments to let you make progress on these passing before I look again.

You will need to manually rebase to get rid of the merge from main.

@ktlim this package doesn't use fastapi or the square approach to dependency management for services?


jobs:
run_lint:
uses: lsst/rubin_workflows/.github/workflows/lint.yaml@main
Copy link
Member

Choose a reason for hiding this comment

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

You can remove these two lines because the package already has lint.yaml in it. What needs to be done though is to replace the contents of lint.yaml with the standard version (eg from https://github.com/lsst/pipe_tasks/blob/main/.github/workflows/lint.yaml) since the one in this repo is old and hasn't been changed to use the reusable workflow.

- name: Editable mode install
run: |
python -m pip install uv
uv pip install pytest
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
uv pip install pytest
uv pip install --system pytest

uv needs to be forced to use the system python.

run: |
python -m pip install uv
uv pip install pytest
uv pip install -e .
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
uv pip install -e .
uv pip install --system -e .

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.

3 participants