bind functions to reset/clear connection #63
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: Pip | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| platform: [macos-latest, ubuntu-22.04, ubuntu-latest] # windows-latest excluded for now | |
| python-version: ["3.7", "3.11"] | |
| exclude: | |
| # 3.7 is not available anymore on macos-latest | |
| - platform: macos-latest | |
| python-version: "3.7" | |
| - platform: ubuntu-latest | |
| python-version: "3.7" | |
| runs-on: ${{ matrix.platform }} | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| submodules: true | |
| fetch-depth: 0 | |
| - name: Write version.txt on release event | |
| if: github.event_name == 'release' | |
| run: echo ${{ github.event.release.tag_name }} > VERSION.txt | |
| - uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Set up CMake >= 3.5 | |
| run: | | |
| if [[ "$RUNNER_OS" == "Linux" ]]; then | |
| sudo apt-get update | |
| sudo apt-get install -y cmake | |
| elif [[ "$RUNNER_OS" == "macOS" ]]; then | |
| brew install cmake | |
| fi | |
| cmake --version | |
| - name: Add requirements | |
| run: python -m pip install --upgrade wheel setuptools | |
| - name: Build and install | |
| run: pip install --verbose .[test] | |
| - name: Test | |
| run: python -m pytest test.py |