Harden Windows Actions shell execution (#11)

* Fix scheduled news coverage and run date reporting

* Harden Windows Actions shell execution
This commit is contained in:
nornen0202 2026-04-07 20:50:40 +09:00 committed by GitHub
parent e7584b8d83
commit f1f6a2d1ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 4 deletions

View File

@ -33,6 +33,9 @@ jobs:
analyze:
runs-on: [self-hosted, Windows]
timeout-minutes: 240
defaults:
run:
shell: powershell -NoProfile -NonInteractive -ExecutionPolicy Bypass -File {0}
env:
PYTHONUTF8: "1"
PIP_DISABLE_PIP_VERSION_CHECK: "1"
@ -51,13 +54,13 @@ jobs:
python-version: "3.13"
- name: Install TradingAgents
shell: powershell
run: |
python -m pip install --upgrade pip
if ($LASTEXITCODE) { exit $LASTEXITCODE }
python -m pip install -e .
if ($LASTEXITCODE) { exit $LASTEXITCODE }
- name: Verify Codex login and model availability
shell: powershell
run: |
$workspaceDir = Join-Path $env:GITHUB_WORKSPACE ".codex-preflight"
$script = @(
@ -73,9 +76,9 @@ jobs:
"print('First available models:', ', '.join(result.models[:8]))"
) -join "`n"
$script | python -
if ($LASTEXITCODE) { exit $LASTEXITCODE }
- name: Run scheduled analysis and build site
shell: powershell
run: |
$configPath = "config/scheduled_analysis.toml"
if (-not (Test-Path $configPath)) {
@ -106,9 +109,9 @@ jobs:
}
python @args
if ($LASTEXITCODE) { exit $LASTEXITCODE }
- name: Add Git Bash to PATH for Pages packaging
shell: powershell
run: |
$gitBinCandidates = @(
"C:\Program Files\Git\bin",