Skip to content

Commit fb06bfe

Browse files
committed
Pin pypy version for CI and temporarly exclude pypy for ubuntu-18.04
1 parent 8a6ac41 commit fb06bfe

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.github/workflows/github-ci.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v3
1414

1515
- name: Set up Python
16-
uses: actions/setup-python@v3
16+
uses: actions/setup-python@v4
1717
with:
1818
python-version: 3.7.12
1919

@@ -37,21 +37,24 @@ jobs:
3737
fail-fast: false
3838
matrix:
3939
# temporarily downgraded to 3.7.9 and 3.8.10 due to a bug https://github.com/actions/setup-python/issues/402
40-
python-version: ["3.7.9", "3.8.10", "3.9.13", "3.10.4", "pypy-3.9"]
40+
python-version: ["3.7.9", "3.8.10", "3.9.13", "3.10.4", "pypy3.9-v7.3.9"]
4141
os: [macos-10.15, macos-11, ubuntu-18.04, ubuntu-20.04, windows-2019, windows-2022]
4242
exclude:
4343
# temporarily exclude pypy3 on mac-os as there failing tests caused by bug on cbc side
4444
- os: macos-10.15
45-
python-version: "pypy-3.9"
45+
python-version: "pypy3.9-v7.3.9"
4646
- os: macos-11
47-
python-version: "pypy-3.9"
47+
python-version: "pypy3.9-v7.3.9"
48+
# temporarily exclude pypy3 on ubuntu-18.04 as there an issue with installing numpy
49+
- os: ubuntu-18.04
50+
python-version: "pypy3.9-v7.3.9"
4851

4952
steps:
5053

5154
- uses: actions/checkout@v3
5255

5356
- name: Set up Python ${{ matrix.python-version }}
54-
uses: actions/setup-python@v3
57+
uses: actions/setup-python@v4
5558
with:
5659
python-version: ${{ matrix.python-version }}
5760
architecture: x64
@@ -77,7 +80,7 @@ jobs:
7780
run: python -m pip install -r requirements.txt
7881

7982
- name: Install additional requirements (CPython)
80-
if: ${{ matrix.python-version != 'pypy-3.9' }}
83+
if: ${{ matrix.python-version != 'pypy3.9-v7.3.9' }}
8184
run: python -m pip install "matplotlib==3.5.2" "gurobipy==9.5.1"
8285

8386
- name: Install mip
@@ -87,13 +90,13 @@ jobs:
8790
run: python -m pip list
8891

8992
- name: Run tests PyPy
90-
if: ${{ matrix.python-version == 'pypy-3.9'}}
93+
if: ${{ matrix.python-version == 'pypy3.9-v7.3.9'}}
9194
run: |
9295
python -m pytest test --verbose --color=yes --doctest-modules --ignore="test/test_gurobi.py"
9396
python -m pytest mip --verbose --color=yes --doctest-modules --ignore="mip/gurobi.py"
9497
9598
- name: Run tests
96-
if: ${{ matrix.python-version != 'pypy-3.9'}}
99+
if: ${{ matrix.python-version != 'pypy3.9-v7.3.9'}}
97100
run: |
98101
python -m pytest test --verbose --color=yes --doctest-modules
99102
python -m pytest mip --verbose --color=yes --doctest-modules --ignore="mip/gurobi.py"

0 commit comments

Comments
 (0)