Skip to content

Commit

Permalink
fix(pu): fix test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
puyuan1996 committed Jan 19, 2025
1 parent 877e913 commit 36d66fe
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ jobs:
- name: Install PyPI dependencies
shell: bash
run: |
# python -m venv .venv
# source .venv/bin/activate
python -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip setuptools wheel cython
pip install --no-cache-dir --upgrade flake8 setuptools wheel twine -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install -r requirements.txt --upgrade --no-cache-dir -i https://pypi.tuna.tsinghua.edu.cn/simple
Expand All @@ -83,6 +83,13 @@ jobs:
pip install --no-cache-dir transformers --upgrade -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install opencv-python --upgrade --no-cache-dir -i https://pypi.tuna.tsinghua.edu.cn/simple
# pip install box2d-py --only-binary :all: -i https://pypi.tuna.tsinghua.edu.cn/simple
- name: Verify Python.h availability
shell: bash
run: |
if [ ! -f "$(python3-config --includes | sed 's/-I//g' | awk '{print $1}')/Python.h" ]; then
echo "Error: Python.h not found."
exit 1
fi
- name: Run unittest on MacOS or Linux
if: ${{ env.OS_NAME == 'MacOS' || env.OS_NAME == 'Linux'}}
env:
Expand Down

0 comments on commit 36d66fe

Please sign in to comment.