Add Native HEIC Support and Fix EXIF Orientation #49
Workflow file for this run
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, develop ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] | |
| exclude: | |
| # Reduce matrix for faster CI | |
| - os: windows-latest | |
| python-version: '3.9' | |
| - os: macos-latest | |
| python-version: '3.9' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| working-directory: packages/python | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e ".[dev]" | |
| - name: Lint with ruff | |
| working-directory: packages/python | |
| run: | | |
| ruff check src/ tests/ | |
| - name: Check formatting with black | |
| working-directory: packages/python | |
| run: | | |
| black --check src/ tests/ | |
| - name: Type check with mypy | |
| working-directory: packages/python | |
| run: | | |
| mypy src/ | |
| - name: Test with pytest | |
| working-directory: packages/python | |
| run: | | |
| pytest tests/ --cov=src/withoutbg --cov-report=xml --run-real-processing | |
| - name: Upload coverage to Codecov | |
| if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11' | |
| uses: codecov/codecov-action@v3 | |
| with: | |
| file: ./packages/python/coverage.xml | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| fail_ci_if_error: true | |
| security: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.11' | |
| - name: Install bandit | |
| run: pip install bandit[toml] | |
| - name: Run security scan | |
| working-directory: packages/python | |
| run: bandit -r src/ -f json -o bandit-report.json || true | |
| - name: Upload security results | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: bandit-results | |
| path: packages/python/bandit-report.json |