fix: update import path in tests/test_edit_tool.py #46
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 | |
| on: | |
| workflow_dispatch: | |
| push: | |
| paths: | |
| - 'mini_copilot/**' | |
| - 'tests/**' | |
| pull_request: | |
| paths: | |
| - 'mini_copilot/**' | |
| - 'tests/**' | |
| concurrency: | |
| group: 'test' | |
| cancel-in-progress: false | |
| jobs: | |
| test_job: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python 3.13.2 | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.13.2" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| pip install coverage pytest-cov beautifulsoup4 readability-lxml lxml requests pyperclip | |
| - name: Run test script | |
| run: | | |
| export PYTHONPATH=$PYTHONPATH:. | |
| python3 -m coverage run -m unittest discover tests | |
| python3 -m coverage report -m mini_copilot/*.py mini_copilot/commands/*.py |