-
Notifications
You must be signed in to change notification settings - Fork 24
task: use uv #447
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
task: use uv #447
Conversation
ewjoachim
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love it. If you fix the last 2 missing spaces, I say let's merge !
| - name: Install uv | ||
| uses: astral-sh/setup-uv@v5 | ||
| with: | ||
| enable-cache: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL
| PYTHON=${PYTHON:-python} | ||
| # run tests | ||
| $PYTHON -m pytest --no-success-flaky-report -q $PYTEST_OPTIONS "$@" | ||
| pytest --no-success-flaky-report -q $PYTEST_OPTIONS "$@" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(for next PR: https://pypi.org/project/pytest-env/ and the PYTEST_OPTIONS should rather be in pyproject.toml, as addopts)
| - name: Test | ||
| run: | | ||
| ./script/test -v | ||
| uv run ./script/test -v |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Someday, we may even not need a custom script and we can launch pytest directly :D
|
|
||
| if not isinstance(value, Domain): | ||
| err = "domain property has to be of" f"swf.model.domain.Domain type, not {type(value)!r}" | ||
| err = f"domain property has to be ofswf.model.domain.Domain type, not {type(value)!r}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, a good opportunity to fix that
| def domain(self, value: Domain): | ||
| if not isinstance(value, Domain): | ||
| err = "domain property has to be of" f"swf.model.domain.Domain type, not {type(value)!r}" | ||
| err = f"domain property has to be ofswf.model.domain.Domain type, not {type(value)!r}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix here too
Signed-off-by: Yves Bastide <yves@botify.com>
Signed-off-by: Yves Bastide <yves@botify.com>
WIP Signed-off-by: Yves Bastide <yves@botify.com>
Signed-off-by: Yves Bastide <yves@botify.com>
Signed-off-by: Yves Bastide <yves@botify.com>
Signed-off-by: Yves Bastide <yves@botify.com>
|
(do you plan to add something else to the PR ? Is it still a draft ?) |
Signed-off-by: Yves Bastide <yves@botify.com>
Sorry, I had forgotten it 🙂 |
Two unrelated commits as usual 🙈
Signed-off-by: Yves Bastide yves@botify.com