Skip to content

feat: refactor replacements.json structure to eliminate duplication (#8) #18

feat: refactor replacements.json structure to eliminate duplication (#8)

feat: refactor replacements.json structure to eliminate duplication (#8) #18

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