Fix PLC setter functions for memoryview compatibility (#575) #125
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: Build and test wheels linux/amd64 | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| linux-build-amd64: | |
| name: Build wheel for linux AMD64 | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Prepare snap7 archive | |
| uses: ./.github/actions/prepare_snap7 | |
| - name: Build wheel | |
| uses: ./.github/actions/manylinux_2_28_x86_64 | |
| with: | |
| script: ./.github/build_scripts/build_package.sh | |
| platform: manylinux_2_28_x86_64 | |
| makefile: x86_64_linux.mk | |
| python: /opt/python/cp38-cp38/bin/python | |
| wheeldir: dist/ | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: dist-linux-amd64 | |
| path: dist/*.whl | |
| linux-test-amd64: | |
| name: Testing wheels for linux/amd64 | |
| needs: linux-build-amd64 | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: ["ubuntu-24.04", "ubuntu-22.04"] | |
| python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| enable-cache: true | |
| - name: Download artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: dist-linux-amd64 | |
| path: dist | |
| - name: Install python-snap7 | |
| run: | | |
| uv venv | |
| uv pip install pytest | |
| uv pip install dist/*.whl | |
| # Use --no-project to prevent uv from syncing pyproject.toml, | |
| # which would rebuild from source and lose the bundled snap7 library. | |
| - name: Run tests | |
| run: | | |
| uv run --no-project pytest -m "server or util or client or mainloop" | |
| sudo .venv/bin/pytest -m partner |