@@ -104,17 +104,24 @@ jobs:
104
104
git submodule update --init --recursive
105
105
python -m pip install -e . --upgrade
106
106
pipenv install --deploy --dev --python=${{ steps.python-path.outputs.path }}
107
- python -m pip install pypiserver==2.3.2
107
+ if [[ "${{ matrix.python-version }}" == 3.9* ]] || [[ "${{ matrix.python-version }}" == 3.10* ]]; then
108
+ python -m pip install pypiserver==2.3.2
109
+ fi
108
110
- name : Run pypiserver Windows
109
111
run : |
110
112
cmd /c start pipenv run pypi-server run -v --host=0.0.0.0 --port=8080 --hash-algo=sha256 --disable-fallback ./tests/pypi/ ./tests/fixtures
111
113
if : ${{matrix.os == 'Windows' }}
112
114
- name : Run pypiserver ${{ matrix.os }}
113
115
run : |
114
- pipenv run pypi-server --version
115
- pypi-server --version
116
- pypi-server run -v --host=0.0.0.0 --port=8080 --hash-algo=sha256 --disable-fallback ./tests/pypi/ ./tests/fixtures &
117
- pipenv run pypi-server run -v --host=0.0.0.0 --port=8081 --hash-algo=sha256 --disable-fallback ./tests/pypi/ ./tests/fixtures &
116
+ if [[ "${{ matrix.python-version }}" == 3.9* ]] || [[ "${{ matrix.python-version }}" == 3.10* ]]; then
117
+ # For Python 3.9 and 3.10, run without pipenv
118
+ pypi-server --version
119
+ pypi-server run -v --host=0.0.0.0 --port=8080 --hash-algo=sha256 --disable-fallback ./tests/pypi/ ./tests/fixtures &
120
+ else
121
+ # For Python 3.11, 3.12, and 3.13, run with pipenv
122
+ pipenv run pypi-server --version
123
+ pipenv run pypi-server run -v --host=0.0.0.0 --port=8080 --hash-algo=sha256 --disable-fallback ./tests/pypi/ ./tests/fixtures &
124
+ fi
118
125
if : contains(matrix.os, 'Ubuntu') || contains(matrix.os, 'macOS')
119
126
- name : Run tests
120
127
env :
0 commit comments