FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
msgpack-python/.github/workflows/test_debug.yml at main · dynapx/msgpack-python · GitHub
dynapx
/
msgpack-python
Public
forked from
msgpack/msgpack-python
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
msgpack-python
/
.github
/
workflows
/
test_debug.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
62 lines (52 loc) · 1.82 KB
Breadcrumbs
msgpack-python
/
.github
/
workflows
/
test_debug.yml
Copy path
File metadata and controls
62 lines (52 loc) · 1.82 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name
:
Run tests with debug Python
on
:
push
:
branches
:
[main]
pull_request
:
jobs
:
test
:
runs-on
:
ubuntu-latest
env
:
PYTHON_VERSION
:
3.14.6
steps
:
-
name
:
Checkout
uses
:
actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
#
v7.0.0
-
uses
:
actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9
#
v6.1.0
with
:
path
:
/opt/python-debug
key
:
python-debug-${{ runner.os }}-${{ env.PYTHON_VERSION }}
-
name
:
Install build dependencies
if
:
steps.cache.outputs.cache-hit != 'true'
run
:
|
sudo apt-get update
sudo apt-get install -y build-essential libssl-dev zlib1g-dev \
libbz2-dev libreadline-dev libsqlite3-dev curl libncursesw5-dev \
xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev
-
name
:
Build Python with Py_DEBUG
if
:
steps.cache.outputs.cache-hit != 'true'
run
:
|
wget https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz
tar -xzf Python-${PYTHON_VERSION}.tgz
cd Python-${PYTHON_VERSION}
./configure --with-pydebug --prefix=/opt/python-debug
make -j4
sudo make install
-
name
:
Create venv from debug Python
run
:
|
PYDBG_BIN="/opt/python-debug/bin/python3"
"$PYDBG_BIN" -m venv .venv
echo "$PWD/.venv/bin" >> "$GITHUB_PATH"
echo "VIRTUAL_ENV=$PWD/.venv" >> "$GITHUB_ENV"
-
name
:
Prepare
run
:
|
python -m pip install -r requirements.txt pytest
-
name
:
Build
run
:
|
make cython
pip install .
-
name
:
Test (C extension)
run
:
|
pytest -v test
-
name
:
Test (pure Python fallback)
run
:
|
MSGPACK_PUREPYTHON=1 pytest -v test
Back
|
FazBrowse Home
|
New Git URL