File tree 1 file changed +10
-5
lines changed
1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -104,17 +104,22 @@ 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
108
107
- name : Run pypiserver Windows
109
108
run : |
110
109
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
110
if : ${{matrix.os == 'Windows' }}
112
111
- name : Run pypiserver ${{ matrix.os }}
113
112
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 &
113
+ if [[ "${{ matrix.python-version }}" == 3.9* ]] || [[ "${{ matrix.python-version }}" == 3.10* ]]; then
114
+ # For Python 3.9 and 3.10, run without pipenv
115
+ python -m pip install pypiserver==2.3.2
116
+ pypi-server --version
117
+ pypi-server run -v --host=0.0.0.0 --port=8080 --hash-algo=sha256 --disable-fallback ./tests/pypi/ ./tests/fixtures &
118
+ else
119
+ # For Python 3.11, 3.12, and 3.13, run with pipenv
120
+ pipenv run pypi-server --version
121
+ pipenv run pypi-server run -v --host=0.0.0.0 --port=8080 --hash-algo=sha256 --disable-fallback ./tests/pypi/ ./tests/fixtures &
122
+ fi
118
123
if : contains(matrix.os, 'Ubuntu') || contains(matrix.os, 'macOS')
119
124
- name : Run tests
120
125
env :
You can’t perform that action at this time.
0 commit comments