Skip to content

Commit f2d375c

Browse files
committed
CI: Add venv job
1 parent e707984 commit f2d375c

File tree

1 file changed

+27
-11
lines changed

1 file changed

+27
-11
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212

1313
jobs:
1414
test:
15-
name: ${{ matrix.os }}/${{ matrix.ruby }}/${{ matrix.python }}-${{ matrix.python_architecture }}
15+
name: ${{ matrix.venv }}${{ matrix.os }}/${{ matrix.ruby }}/${{ matrix.python }}-${{ matrix.python_architecture }}
1616
runs-on: ${{ matrix.os }}
1717

1818
strategy:
@@ -30,17 +30,24 @@ jobs:
3030
- 2.x
3131
python_architecture:
3232
- x64
33+
venv:
34+
- ""
3335
include:
34-
- { os: ubuntu-20.04 , ruby: 2.5 , python: 3.x , python_architecture: x64 }
35-
- { os: ubuntu-20.04 , ruby: 2.4 , python: 3.x , python_architecture: x64 }
36-
- { os: ubuntu-20.04 , ruby: 2.5 , python: 2.x , python_architecture: x64 }
37-
- { os: ubuntu-20.04 , ruby: 2.4 , python: 2.x , python_architecture: x64 }
38-
- { os: ubuntu-20.04 , ruby: 2.7 , python: 3.8 , python_architecture: x64 }
39-
- { os: ubuntu-20.04 , ruby: 2.7 , python: 3.7 , python_architecture: x64 }
40-
- { os: ubuntu-20.04 , ruby: 2.7 , python: 3.6 , python_architecture: x64 }
41-
- { os: ubuntu-18.04 , ruby: 2.7 , python: 3.8 , python_architecture: x64 }
42-
- { os: ubuntu-20.04 , ruby: debug , python: 3.x , python_architecture: x64 }
43-
#- { os: macos-latest , ruby: debug , python: 3.x , python_architecture: x64 }
36+
- { os: ubuntu-20.04 , ruby: 2.5 , python: 3.x , python_architecture: x64 , venv: "" }
37+
- { os: ubuntu-20.04 , ruby: 2.4 , python: 3.x , python_architecture: x64 , venv: "" }
38+
- { os: ubuntu-20.04 , ruby: 2.5 , python: 2.x , python_architecture: x64 , venv: "" }
39+
- { os: ubuntu-20.04 , ruby: 2.4 , python: 2.x , python_architecture: x64 , venv: "" }
40+
- { os: ubuntu-20.04 , ruby: 2.7 , python: 3.8 , python_architecture: x64 , venv: "" }
41+
- { os: ubuntu-20.04 , ruby: 2.7 , python: 3.7 , python_architecture: x64 , venv: "" }
42+
- { os: ubuntu-20.04 , ruby: 2.7 , python: 3.6 , python_architecture: x64 , venv: "" }
43+
- { os: ubuntu-18.04 , ruby: 2.7 , python: 3.8 , python_architecture: x64 , venv: "" }
44+
- { os: ubuntu-20.04 , ruby: debug , python: 3.x , python_architecture: x64 , venv: "" }
45+
- { os: ubuntu-20.04 , ruby: "3.0" , python: 3.x , python_architecture: x64 , venv: "venv:" }
46+
- { os: ubuntu-18.04 , ruby: "3.0" , python: 3.x , python_architecture: x64 , venv: "venv:" }
47+
- { os: ubuntu-18.04 , ruby: "3.0" , python: 3.8 , python_architecture: x64 , venv: "venv:" }
48+
- { os: macos-latest , ruby: "3.0" , python: 3.x , python_architecture: x64 , venv: "venv:" }
49+
- { os: macos-latest , ruby: "3.0" , python: 3.8 , python_architecture: x64 , venv: "venv:" }
50+
#- { os: macos-latest , ruby: debug , python: 3.x , python_architecture: x64 , venv: "" }
4451

4552
steps:
4653
- uses: actions/checkout@v2
@@ -65,6 +72,15 @@ jobs:
6572

6673
- run: python lib/pycall/python/investigator.py
6774

75+
- name: venv examination
76+
run: |
77+
python -m venv ~/test-venv
78+
source ~/test-venv/bin/activate
79+
ruby -Ilib -Iext/pycall -rpycall -ePyCall.builtins
80+
env:
81+
PYCALL_DEBUG_FIND_LIBPYTHON: 1
82+
if: ${{ matrix.venv != '' }}
83+
6884
- run: rake
6985
env:
7086
PYTHON: python

0 commit comments

Comments
 (0)