π§ Restructure plugin architecture and improve test coverage #3
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: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - .github/workflows/* | |
| - src/** | |
| - test/** | |
| concurrency: | |
| group: ${{ github.workflow }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint: | |
| name: π§Ή Lint | |
| runs-on: ubuntu-latest | |
| if: github.actor != 'renovate[bot]' | |
| steps: | |
| - name: π₯ Checkout repository | |
| uses: actions/checkout@v5 | |
| - uses: pre-commit/[email protected] | |
| tests: | |
| name: π§ͺ Tests | |
| runs-on: ubuntu-latest | |
| needs: lint | |
| steps: | |
| - name: π₯ Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: π Setup Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: 3.11 | |
| - name: π§ͺ Run tests with coverage | |
| run: | | |
| python -m pip install -e .[dev] | |
| coverage run -m pytest --exitfirst | |
| coverage report --show-missing |