File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Test PyPI Install
2+
3+ # Controls when the workflow will run
4+ on :
5+ # Allows you to run this workflow manually from the Actions tab only
6+ workflow_dispatch :
7+ inputs :
8+ package_name :
9+ description : " Package to install from PyPI (raylib, raylib_sdl, raylib_drm, raylib_dynamic)"
10+ type : string
11+ required : true
12+ default : " raylib"
13+
14+ jobs :
15+ test-pypi-install :
16+ runs-on : ${{ matrix.os }}
17+ strategy :
18+ fail-fast : false
19+ matrix :
20+ os : [macos-15-intel, macos-14]
21+ python-version : ["3.14", "3.11", "3.12", "3.13"]
22+ steps :
23+ - name : Install Python from Homebrew
24+ run : |
25+ brew install python@${{ matrix.python-version }}
26+ PYTHON_BIN="$(brew --prefix python@${{ matrix.python-version }})/bin/python${{ matrix.python-version }}"
27+ echo "PYTHON_BIN=$PYTHON_BIN" >> "$GITHUB_ENV"
28+ $PYTHON_BIN --version
29+
30+ - name : Install package from PyPI
31+ run : |
32+ "$PYTHON_BIN" -m pip install --upgrade pip
33+ "$PYTHON_BIN" -m pip install "${{ inputs.package_name }}"
34+
35+ - name : Test import and basic initialization
36+ run : |
37+ cd /
38+ "$PYTHON_BIN" -c 'import pyray; pyray.init_window(100,100,"test")' >/tmp/output 2>&1 || true
39+ cat /tmp/output
40+ if grep -q "INFO: Initializing raylib" /tmp/output; then
41+ echo "Passed"
42+ exit 0
43+ else
44+ echo "Failed"
45+ exit 1
46+ fi
47+ shell : bash
You can’t perform that action at this time.
0 commit comments