@@ -41,10 +41,10 @@ jobs:
4141 run : ruff format --check .
4242
4343 - name : Mypy (type check)
44- run : mypy --config-file pyproject.toml utils Plugins_SDK engine_sdk bcasl
44+ run : mypy --config-file pyproject.toml utils API_SDK engine_sdk bcasl acasl
4545
4646 - name : Bandit (security)
47- run : bandit -r utils Plugins_SDK engine_sdk bcasl -f json -o bandit-report.json
47+ run : bandit -r utils API_SDK engine_sdk bcasl acasl -f json -o bandit-report.json
4848
4949 - name : pip-audit (dependencies)
5050 if : hashFiles('requirements.txt') != ''
@@ -109,13 +109,11 @@ jobs:
109109 pip install mypy
110110
111111 - name : MyPy type check
112- run : mypy --config-file pyproject.toml utils Plugins_SDK engine_sdk bcasl
112+ run : mypy --config-file pyproject.toml utils API_SDK engine_sdk bcasl acasl
113113
114114 tests :
115115 name : Tests
116116 runs-on : ubuntu-latest
117- env :
118- QT_QPA_PLATFORM : offscreen
119117 strategy :
120118 matrix :
121119 python-version : ['3.10', '3.11', '3.12']
@@ -137,7 +135,7 @@ jobs:
137135 - name : Run tests with pytest
138136 run : |
139137 if [ -d tests ]; then
140- python -m pytest tests/ -v --tb=short --cov=utils --cov=Plugins_SDK --cov=engine_sdk --cov=bcasl --cov-report=xml --cov-report=term-missing
138+ python -m pytest tests/ -v --tb=short --cov=utils --cov=API_SDK --cov=engine_sdk --cov=bcasl --cov=acasl --cov-report=xml --cov-report=term-missing
141139 else
142140 echo "No tests directory found, skipping tests"
143141 fi
@@ -155,8 +153,6 @@ jobs:
155153 name : Build and test (${{ matrix.os }}, py${{ matrix.python-version }})
156154 runs-on : ${{ matrix.os }}
157155 needs : lint
158- env :
159- QT_QPA_PLATFORM : offscreen
160156 strategy :
161157 fail-fast : false
162158 matrix :
@@ -201,5 +197,16 @@ jobs:
201197 path : coverage.xml
202198 if-no-files-found : ignore
203199
204- # Packaging (sdist/wheel) intentionally disabled.
205- # This project is distributed as a standalone binary, not a PyPI package.
200+ - name : Build distributions (sdist+wheel) if packaging configured
201+ if : >-
202+ hashFiles('pyproject.toml') != '' ||
203+ hashFiles('setup.cfg') != '' ||
204+ hashFiles('setup.py') != ''
205+ run : python -m build --sdist --wheel
206+
207+ - name : Upload dist artifacts (if any)
208+ uses : actions/upload-artifact@v4
209+ with :
210+ name : dist-${{ matrix.os }}-py${{ matrix.python-version }}
211+ path : dist/*
212+ if-no-files-found : warn
0 commit comments