Repository navigation
ci: add native Windows smoke workflow #36154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| name: Windows smoke | ||
|
|
||
| on: | ||
| pull_request: | ||
| paths: | ||
| - ".github/workflows/windows-smoke.yml" | ||
| - "pyproject.toml" | ||
| - "uv.lock" | ||
| - "hermes_cli/**" | ||
| - "agent/**" | ||
| - "tools/**" | ||
| - "tests/**" | ||
| - "*.py" | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| windows-smoke: | ||
| name: Windows smoke / Python ${{ matrix.python-version }} | ||
| runs-on: windows-latest | ||
| timeout-minutes: 20 | ||
|
|
||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| python-version: ["3.11"] | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Repository policy requires Actions to be pinned by full commit SHA with a version comment ( |
||
|
|
||
| - name: Set up Python | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| cache: pip | ||
|
|
||
| - name: Show platform diagnostics | ||
| shell: pwsh | ||
| run: | | ||
| python -VV | ||
| python -c "import os, platform, sys; print(sys.platform); print(platform.platform()); print(os.getcwd())" | ||
| Get-ChildItem Env: | Where-Object { $_.Name -match '^(OS|PROCESSOR_ARCHITECTURE|SYSTEMROOT|WINDIR|COMSPEC|USERPROFILE|TEMP|TMP)$' } | Sort-Object Name | ||
|
|
||
| - name: Install Hermes in editable mode | ||
| shell: pwsh | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| python -m pip install -e .[dev] | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please use the locked CI install path ( |
||
|
|
||
| - name: CLI import and help smoke | ||
| shell: pwsh | ||
| run: | | ||
| hermes --help | ||
| hermes config --help | ||
| hermes doctor --help | ||
| python -c "import hermes_cli.main, run_agent, model_tools; print('imports ok')" | ||
|
|
||
| - name: Targeted Windows-safe tests | ||
| shell: pwsh | ||
| env: | ||
| PYTHONUTF8: "1" | ||
| run: | | ||
| python -m pytest ` | ||
| tests/test_hermes_constants.py ` | ||
| tests/test_timezone.py ` | ||
| tests/test_utils_truthy_values.py ` | ||
| tests/test_packaging_metadata.py ` | ||
| -o addopts= ` | ||
| -q | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make this a reusable
workflow_calllane and invoke it from.github/workflows/ci.yml. Current CI explicitly centralizes pull-request/push triggers and only aggregates its declared lanes; this standalone workflow would neither joinall-checks-passnor run after a push tomain.