Skip to content

Commit

Permalink
TST: simplify CI with setup-uv@v5
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros committed Jan 1, 2025
1 parent a984fa0 commit a9b0b30
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/bleeding-edge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ jobs:

- name: Install dependencies
run: |
uv venv
uv pip install --upgrade setuptools wheel
uv pip install --pre --no-build numpy \
--extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
Expand All @@ -52,7 +51,6 @@ jobs:

- name: Run Tests
run: |
source .venv/bin/activate
pytest --color=yes -ra
create-issue:
Expand Down
11 changes: 3 additions & 8 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,15 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}

- name: Build
run: |
uv venv --python ${{ matrix.python-version }}
uv pip install --editable "." ${{ matrix.install-args }}
- run: uv pip install --requirement test_requirements.txt
- run: uv pip list
- name: Run test suite (UNIX)
- name: Run test suite
if: matrix.os != 'windows-latest'
run: |
source .venv/bin/activate
pytest --color yes -ra
- name: Run test suite (Windows)
if: matrix.os == 'windows-latest'
run: |
source .venv/Scripts/activate
pytest --color yes -ra
5 changes: 1 addition & 4 deletions .github/workflows/wheels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,10 @@ jobs:
- uses: astral-sh/setup-uv@v5
- name: Install build time dependencies
run: |
uv venv
uv pip install 'Cython>=3.0' 'numpy>=2.0.0' setuptools wheel check-manifest
- name: Build
run: uv pip install --no-build-isolation .
- run: |
source .venv/bin/activate
check-manifest
- run: check-manifest

deploy:
name: Publish to PyPI
Expand Down

0 comments on commit a9b0b30

Please sign in to comment.