ci: add shell quality checks
This commit is contained in:
1 parent
c88e683c6d
commit
bda123d4c1
1 file changed
+21
@@ -37,3 +37,24 @@ jobs:
|
||||
- name: Lint Bash
|
||||
run: shellcheck --severity=warning $(git ls-files '*.sh')
|
||||
|
||||
python:
|
||||
name: Python tests and compilation
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
steps:
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.6.0
|
||||
with:
|
||||
python-version: '3.12'
|
||||
- name: Compile Python sources
|
||||
run: python -m compileall -q scripts shared
|
||||
- name: Run Python tests
|
||||
run: |
|
||||
set -euo pipefail
|
||||
for file in scripts/test-*.py; do
|
||||
echo "==> $file"
|
||||
python "$file"
|
||||
done
|
||||
- name: Validate generated configuration
|
||||
run: python scripts/validate-config.py generated/codex-powershell/config.toml generated/claude-powershell/settings.json
|
||||
|
||||
Reference in new issue
Block a user