fix local version mismatch #1117
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 Python Package | |
| on: | |
| push: | |
| paths: | |
| - 'src/sunholo/**' | |
| - 'pyproject.toml' | |
| - 'tests/**' | |
| pull_request: | |
| paths: | |
| - 'src/sunholo/**' | |
| - 'pyproject.toml' | |
| - 'tests/**' | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v3 | |
| with: | |
| python-version: '3.x' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pytest pytest-asyncio pytest-cov | |
| - name: Install package with test and http dependencies | |
| run: pip install -e ".[test]" | |
| - name: Run unit tests | |
| run: | | |
| # Run only tests that work with minimal dependencies | |
| pytest tests/test_config.py tests/test_chat_history.py -v |