fix: resolve ruff import ordering and unused import errors #255
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: CI | |
| on: [push, pull_request] | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - run: pip install -r requirements-dev.txt | |
| - run: ruff check . | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| group: ["a-l", "m-z"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - run: pip install -r requirements-dev.txt | |
| - name: Run tests (${{ matrix.group }}) | |
| run: | | |
| if [ "${{ matrix.group }}" = "a-l" ]; then | |
| pytest tests/test_[a-l]*.py --tb=short -q | |
| else | |
| pytest tests/test_[m-z]*.py --tb=short -q | |
| fi | |
| continue-on-error: true |