refactor: remove mmCoreAndDevices source code , use meson wraps #350
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] | |
| tags: [v*] | |
| pull_request: | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| name: ${{ matrix.platform }} (${{ matrix.python-version }}) | |
| runs-on: ${{ matrix.platform }} | |
| env: | |
| UV_FROZEN: 1 | |
| UV_PYTHON: ${{ matrix.python-version }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.9", "3.13"] | |
| platform: [windows-latest, ubuntu-latest, macos-latest] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - uses: extractions/setup-just@v3 | |
| - uses: astral-sh/setup-uv@v6 | |
| with: | |
| enable-cache: true | |
| - uses: ilammy/msvc-dev-cmd@v1 | |
| if: matrix.platform == 'windows-latest' | |
| with: | |
| toolset: "14.29" | |
| - name: install | |
| # install with coverage=true | |
| run: just install true | |
| - name: test | |
| run: uv run --no-sync pytest --color=yes -v --cov --cov-report=xml | |
| - name: cpp-coverage | |
| run: uv run --no-sync gcovr --filter=src --xml coverage_cpp.xml --merge-mode-functions=merge-use-line-min | |
| - uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: ./coverage.xml,./coverage_cpp.xml | |
| test-pymmcore-plus: | |
| name: test pymmcore-plus ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| env: | |
| UV_NO_SYNC: "1" | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| repository: pymmcore-plus/pymmcore-plus | |
| - uses: actions/checkout@v5 | |
| with: | |
| path: pymmcore-nano | |
| - uses: astral-sh/setup-uv@v6 | |
| with: | |
| python-version: "3.13" | |
| - name: Install dependencies | |
| run: | | |
| uv sync --no-dev --group test | |
| uv pip install --no-dev --group test --no-build-isolation --no-deps ./pymmcore-nano | |
| uv pip list | |
| - run: uv run pytest -v --color=yes -W ignore |