Skip to content

Commit

Permalink
ci: Try with simpleindex
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisv committed Jan 28, 2025
1 parent 8ce04ee commit 15c5c0f
Showing 1 changed file with 24 additions and 6 deletions.
30 changes: 24 additions & 6 deletions .github/workflows/release-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
path: dist

test:
name: "Test ${{ matrix.build }} wheels on ${{ matrix.arch }}"
name: "Test ${{ matrix.python-version }} wheels on ${{ matrix.os }}"
needs: "build-wheel"
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -88,13 +88,31 @@ jobs:
pattern: dist-*
merge-multiple: true
path: /tmp/dist
- name: setup
- name: setup and install wheel
run: |
python -m pip install -U pip
python -m pip install wheel simple503
python -m simple503 --sort --base-url /tmp/dist /tmp/dist
- name: install wheel
run: python -m pip install -i file:///tmp/dist proxsuite
python -m pip install wheel simpleindex
# Since it's dangerous to use --extra-index-url we use simpleindex
# to mirror PyPI but use the local proxsuite packages
cat <<EOF > configuration.toml
# Serve local files for packages with prefix "proxsuite".
[routes."proxsuite"]
source = "path"
to = "/tmp/dist"
# Otherwise use PyPI.
[routes."{project}"]
source = "http"
to = "https://pypi.org/simple/{project}/"
[server]
host = "127.0.0.1"
port = 8000
EOF
python -m simpleindex ./configuration.toml &
# Wait for simpleindex server
curl --head -X GET --retry 5 --retry-connrefused --retry-delay 1 http://127.0.0.1:8000
python -m pip install -i http://127.0.0.1:8000 proxsuite
- name: test module
run: python -c "import proxsuite"
env:
Expand Down

0 comments on commit 15c5c0f

Please sign in to comment.