File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -118,19 +118,44 @@ jobs:
118118 with :
119119 python-version : ${{ matrix.py_version }}
120120
121- - name : Install python version
122- uses : gabrielfalcao/pyenv-action@v18
123- with :
124- default : " ${{ matrix.py_version }}"
121+ - name : Set up pyenv (unix)
122+ if : ${{ matrix.os.name != 'windows' }}
123+ run : |
124+ curl -fsSL https://pyenv.run | bash
125+ echo 'export PYENV_ROOT="$HOME/.pyenv"' >> $GITHUB_ENV
126+ echo 'export PATH="$HOME/.pyenv/bin:$PATH"' >> $GITHUB_ENV
127+
128+ - name : Set up Python ${{ matrix.py_version }} (unix)
129+ shell : bash
130+ if : ${{ matrix.os.name != 'windows' }}
131+ run : |
132+ export PYENV_ROOT="$HOME/.pyenv"
133+ export PATH="$PYENV_ROOT/bin:$PATH"
134+ eval "$(pyenv init -)"
135+
136+ pyenv install -s ${{ matrix.python }}
137+ pyenv global ${{ matrix.python }}
138+
139+ python --version
140+ python -m ensurepip || true
141+ python -m pip install --upgrade "pip<21"
125142
126143 - name : Print Python version
144+ shell : bash
127145 run : |
128- python3 --version
146+ python --version
147+
148+ - name : Update pip
149+ shell : bash
150+ run : |
151+ python -m pip install -U "pip<21"
129152
130153 - name : Build and install wheel
154+ shell : bash
131155 run : |
132- python3 -m pip install . --break-system-packages
156+ python -m pip install . --break-system-packages
133157
134158 - name : Run the test
159+ shell : bash
135160 run : |
136- python3 tests/python/disasm_test.py
161+ python tests/python/disasm_test.py
You can’t perform that action at this time.
0 commit comments