-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #105 from neutrinoceros/tst/uv_pip
TST: speed up env resolution with uv
- Loading branch information
Showing
4 changed files
with
56 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,18 +29,18 @@ jobs: | |
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- uses: yezz123/setup-uv@v4 | ||
with: | ||
uv-version: 0.2.18 | ||
uv-venv: .venv | ||
|
||
- name: Build wheels for CPython | ||
uses: pypa/[email protected] | ||
with: | ||
output-dir: dist | ||
env: | ||
CIBW_BUILD: cp39-* cp310-* cp311-* cp312-* | ||
CIBW_ARCHS_LINUX: x86_64 | ||
MACOSX_DEPLOYMENT_TARGET: '10.9' # as of CIBW 2.9, this is the default value, pin it so it can't be bumped silently | ||
CIBW_ARCHS_WINDOWS: auto64 | ||
CIBW_BUILD_VERBOSITY: 1 | ||
CIBW_TEST_COMMAND: > | ||
python -m pip install -r {project}/test_requirements.txt | ||
uv pip install -r {project}/test_requirements.txt | ||
&& pytest --pyargs ewah_bool_utils --color=yes | ||
- uses: actions/upload-artifact@v4 | ||
|
@@ -74,21 +74,22 @@ jobs: | |
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.x | ||
- uses: yezz123/setup-uv@v4 | ||
with: | ||
uv-version: 0.2.18 | ||
uv-venv: .venv | ||
- name: install check-manifest | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install check-manifest | ||
run: uv pip install check-manifest | ||
- name: Install build time dependencies | ||
shell: bash | ||
run: | | ||
python -m pip install "Cython>=3.0,<3.1" | ||
python -m pip install oldest-supported-numpy | ||
python -m pip install --upgrade wheel | ||
python -m pip install --upgrade setuptools | ||
uv pip install "Cython>=3.0,<3.1" | ||
uv pip install oldest-supported-numpy | ||
uv pip install --upgrade wheel | ||
uv pip install --upgrade setuptools | ||
- name: Build | ||
shell: bash | ||
run: | | ||
python -m pip install --no-build-isolation . | ||
run: uv pip install --no-build-isolation . | ||
- name: Init submodules | ||
uses: snickerbockers/submodules-init@v4 | ||
- name: run check-manifest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters