Release 1.0.10: Enhanced format detection, exception hierarchy, and d… #6
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: | |
| branches: [ main, master ] | |
| pull_request: | |
| branches: [ main, master ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: 'pip' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install .[dev] | |
| - name: Lint with Ruff | |
| run: | | |
| # Run ruff for linting | |
| ruff check . | |
| # Run ruff for formatting check | |
| ruff format --check . | |
| - name: Test with pytest | |
| run: | | |
| pytest | |
| - name: Security scan with Bandit | |
| run: | | |
| bandit -r iterable -f json -o bandit-report.json || true | |
| bandit -r iterable -ll || true | |
| - name: Dependency vulnerability scan with pip-audit | |
| run: | | |
| pip freeze > requirements-frozen.txt | |
| pip-audit --requirement requirements-frozen.txt || true | |
| rm requirements-frozen.txt | |
| - name: Upload coverage reports | |
| if: matrix.python-version == '3.11' | |
| uses: codecov/codecov-action@v3 | |
| with: | |
| file: ./coverage.xml | |
| fail_ci_if_error: false | |
| flags: unittests |