chore: release 2.3.0 #149
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] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-15, windows-latest] | |
| python-version: ["3.10", "3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install libegl (Linux) | |
| if: runner.os == 'Linux' | |
| run: sudo apt-get update && sudo apt-get install -y libegl1 libgl1 | |
| - name: Install package | |
| run: | | |
| pip install .[dev,tool] | |
| cd packages/mvtb-data && pip install . | |
| - name: Run tests | |
| env: | |
| MPLBACKEND: Agg | |
| run: python -m pytest --timeout=50 --timeout-method=thread | |
| all-tests-passed: | |
| name: All tests passed | |
| needs: test | |
| runs-on: ubuntu-latest | |
| if: always() | |
| steps: | |
| - name: Check test matrix result | |
| run: | | |
| if [ "${{ needs.test.result }}" != "success" ]; then | |
| echo "test matrix did not succeed: ${{ needs.test.result }}" | |
| exit 1 | |
| fi | |
| codecov: | |
| needs: test | |
| if: github.event_name == 'push' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.13" | |
| - name: Install libegl | |
| run: sudo apt-get update && sudo apt-get install -y libegl1 libgl1 | |
| - name: Install package | |
| run: | | |
| pip install .[dev,tool] | |
| cd packages/mvtb-data && pip install . | |
| - name: Run coverage | |
| env: | |
| MPLBACKEND: Agg | |
| run: | | |
| coverage run --source=machinevisiontoolbox --omit="src/machinevisiontoolbox/blocks/*,src/machinevision/blocks/*" -m pytest --timeout=50 | |
| coverage xml | |
| - name: Upload to Codecov | |
| uses: codecov/codecov-action@v7 | |
| with: | |
| file: ./coverage.xml |