feat: refactor replacements.json structure to eliminate duplication (#8) #18
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: Test Installer | |
| on: | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - 'src/ccnotify/installer/**' | |
| - 'src/ccnotify/cli.py' | |
| - 'src/ccnotify/setup.py' | |
| - 'scripts/test_installer.py' | |
| pull_request: | |
| branches: [ main ] | |
| paths: | |
| - 'src/ccnotify/installer/**' | |
| - 'src/ccnotify/cli.py' | |
| - 'src/ccnotify/setup.py' | |
| - 'scripts/test_installer.py' | |
| jobs: | |
| test-installer: | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 10 # Prevent hanging tests | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| python-version: ['3.10'] # Only test on 3.10 to save GitHub Actions minutes | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e . | |
| - name: Run installer tests | |
| env: | |
| CI: true | |
| GITHUB_ACTIONS: true | |
| run: | | |
| python scripts/test_installer.py | |
| # Skip the actual uvx installation test in CI as it requires downloading models | |
| # The unit tests above already verify the installer logic |