diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 95a42ac..c26f430 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup constants shell: bash @@ -67,14 +67,14 @@ jobs: - name: Use new Python uses: actions/setup-python@v4 with: - python-version: '3.x' + python-version: '3.11' architecture: x64 - name: Fetch Python dependencies run: | pip install -r tests/requirements.txt - - uses: suisei-cn/actions-download-file@v1 + - uses: suisei-cn/actions-download-file@v1.4.0 name: Download Toit with: url: ${{ env.TOIT_URL }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f15b942..b137520 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,12 +1,28 @@ +# Zero-Clause BSD License + +# Copyright (C) 2023 Toitware ApS. + +# Permission to use, copy, modify, and/or distribute this software for any +# purpose with or without fee is hereby granted. + +# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND +# FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +# OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +# PERFORMANCE OF THIS SOFTWARE. + name: Publish package on: push: tags: - - 'v*' + - 'v[0-9]+.[0-9]+.[0-9]+' + - 'v[0-9]+.[0-9]+.[0-9]+-*' jobs: create-release: name: Create new release runs-on: ubuntu-latest steps: - name: Publish - uses: toitlang/pkg-publish@v1.0.2 + uses: toitlang/pkg-publish@v1.4.0 diff --git a/tests/README.md b/tests/README.md index 59f167d..64ce9f5 100644 --- a/tests/README.md +++ b/tests/README.md @@ -10,6 +10,8 @@ The safe choice is to consider them BSD as well. ## Installation +pymodbus=3.0.0.dev4 requires the 'imp' module, which was removed with Python 3.12. + Install with ``` shell diff --git a/tests/test_server.toit b/tests/test_server.toit index 07ccb64..2bce67d 100644 --- a/tests/test_server.toit +++ b/tests/test_server.toit @@ -21,8 +21,8 @@ start_server mode/string: fork_data := pipe.fork true // use_path. pipe.PIPE_INHERITED // stdin. - pipe.PIPE_INHERITED // stdin. - pipe.PIPE_INHERITED // stdin. + pipe.PIPE_CREATED // stdout. + pipe.PIPE_CREATED // stderr. "python" // program. args return [