Skip to content

Commit

Permalink
pytest on ci
Browse files Browse the repository at this point in the history
  • Loading branch information
lobis committed Dec 8, 2023
1 parent 9cb8731 commit dab6920
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/wheels.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
name: Wheels

# https://github.com/scikit-learn/scikit-learn/blob/main/.github/workflows/wheels.yml as template

on:
workflow_dispatch:
inputs:
Expand Down Expand Up @@ -100,8 +98,9 @@ jobs:

- uses: pypa/cibuildwheel@v2.16.2
env:
CIBW_TEST_REQUIRES: pytest
CIBW_TEST_COMMAND: python -m pytest {project}/tests
CIBW_TEST_COMMAND:
python -m pytest {project}/tests -vv --reruns 3 --reruns-delay 30
--only-rerun "(?i)http|timeout|connection|socket|resolve"
CIBW_ENVIRONMENT: >
SKLEARN_SKIP_NETWORK_TESTS=1 SKLEARN_BUILD_PARALLEL=3
CIBW_BUILD: cp${{ matrix.python }}-${{ matrix.platform_id }}
Expand Down Expand Up @@ -141,7 +140,7 @@ jobs:
path: wheelhouse/*.whl

upload-test-pypi:
name: Upload wheels to PyPI
name: Upload wheels to Test PyPI
needs: [sdist, wheels]
runs-on: ubuntu-latest
if: github.event.inputs.publish_to_test_pypi
Expand Down

0 comments on commit dab6920

Please sign in to comment.