test: add native wrap and install e2e workflows #14
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Wrap Native E2E | |
| # Cross-platform smoke tests for the hidden ``headroom wrap ... --prepare-only`` | |
| # flows. These reuse the existing pytest bridge cases so we exercise the real | |
| # CLI on linux / macos / windows without depending on agent binaries or long- | |
| # lived proxy processes. | |
| # | |
| # This complements the Docker-native wrap e2e by catching host-specific issues | |
| # such as Windows path handling, home-directory layout, and filesystem quirks in | |
| # prepare-only config injection. | |
| on: | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - "headroom/cli/**" | |
| - "headroom/providers/**" | |
| - "headroom/rtk/**" | |
| - "tests/test_cli/test_wrap_bridge.py" | |
| - ".github/actions/headroom-e2e-setup/**" | |
| - ".github/workflows/wrap-native-e2e.yml" | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| wrap-native: | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 15 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup | |
| uses: ./.github/actions/headroom-e2e-setup | |
| with: | |
| python-version: "3.11" | |
| - name: Install pytest | |
| shell: bash | |
| run: | | |
| python -m pip install pytest pytest-cov | |
| - name: Run wrap native bridge tests | |
| shell: bash | |
| run: | | |
| pytest tests/test_cli/test_wrap_bridge.py --cov=headroom --cov-report=xml:coverage-wrap-native.xml --cov-report=term-missing -q | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| file: ./coverage-wrap-native.xml | |
| flags: wrap-native | |
| name: wrap-native-${{ matrix.os }} | |
| fail_ci_if_error: false |