-
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
Changes from all commits
0a9c016
90683b1
42558c4
f6b13d7
c319b04
5ecd331
4d02eba
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,18 +37,25 @@ jobs: | |
| - os: "ubuntu-latest" | ||
| python-version: "pypy-3.9" | ||
|
|
||
| env: | ||
| UV_PYTHON: ${{ matrix.python-version }} | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@v5 | ||
| with: | ||
| enable-cache: true | ||
|
|
||
| - name: Set up Python ${{ matrix.python-version }} | ||
| uses: actions/setup-python@v4 | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
|
|
||
| - name: Install test dependencies | ||
| run: | | ||
| pip install -e .[dev] | ||
| - name: Install the project | ||
| run: uv sync --all-extras --dev | ||
|
|
||
| - name: Test | ||
| run: | | ||
| ./script/test -v | ||
| uv run ./script/test -v | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,5 @@ | ||
| #!/bin/bash | ||
|
|
||
| # not needed, but harmless, in CI/container | ||
| find . -name '*.pyc' -print0 | xargs -0 rm | ||
| export PYTHONDONTWRITEBYTECODE=1 | ||
|
|
||
| # The AWS_DEFAULT_REGION parameter determines the region used for SWF | ||
|
|
@@ -35,4 +33,4 @@ export BOTO_CONFIG=/dev/null | |
|
|
||
| PYTHON=${PYTHON:-python} | ||
| # run tests | ||
| $PYTHON -m pytest --no-success-flaky-report -q $PYTEST_OPTIONS "$@" | ||
| pytest --no-success-flaky-report -q $PYTEST_OPTIONS "$@" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||
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