From 3ff8a6455829083d5ddbede78d5450b9684936cb Mon Sep 17 00:00:00 2001 From: sdb9696 Date: Fri, 12 Apr 2024 18:11:33 +0100 Subject: [PATCH 1/3] Fix pytest-socket for windows --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 62612e9..03d1ff9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -77,7 +77,7 @@ testpaths = [ ] norecursedirs = ".git" asyncio_mode = "auto" -addopts = "--disable-socket --allow-unix-socket" +addopts = "--allow-hosts=127.0.0.1,::1" filterwarnings = [ "ignore:.*google._upb._message.MessageMapContainer uses PyType_Spec.*:DeprecationWarning", "ignore:.*google._upb._message.ScalarMapContainer uses PyType_Spec.*:DeprecationWarning", From 2c4a9749cd52db928bdb9c80160d837dd2bc0447 Mon Sep 17 00:00:00 2001 From: sdb9696 Date: Fri, 12 Apr 2024 18:29:10 +0100 Subject: [PATCH 2/3] Enable windows and macos in CI --- .github/workflows/ci.yml | 36 ++++++++++++++++++++++++++---------- 1 file changed, 26 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bcc2eae..9da5a3e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,7 @@ jobs: with: python-version: ${{ matrix.python-version }} poetry-version: ${{ env.POETRY_VERSION }} - poetry-install-options: "--sync --extras listen --verbose" + poetry-install-options: "--extras listen" cache-pre-commit: true - name: "Run pre-commit checks" run: | @@ -43,24 +43,40 @@ jobs: with: python-version: ${{ matrix.python-version }} poetry-version: ${{ env.POETRY_VERSION }} - poetry-install-options: "--sync --extras docs --without dev" + poetry-install-options: "--extras docs --without dev" - name: Make docs poetry run: | poetry run make -C docs html tests: - name: tests + name: Tests - Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (listen)", ""]')[matrix.extras == ''] }} needs: linting runs-on: ubuntu-latest strategy: fail-fast: true matrix: - python-version: - - "3.8" - - "3.9" - - "3.10" - - "3.11" - - "3.12" + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "pypy-3.8", "pypy-3.10"] + extras: [false, true] + exclude: + - os: macos-latest + extras: true + - os: windows-latest + extras: true + - os: ubuntu-latest + python-version: "pypy-3.8" + extras: true + - os: ubuntu-latest + python-version: "pypy-3.10" + extras: true + - os: ubuntu-latest + python-version: "3.8" + extras: true + - os: ubuntu-latest + python-version: "3.9" + extras: true + - os: ubuntu-latest + python-version: "3.10" + extras: true steps: - uses: "actions/checkout@v4" - name: Setup environment @@ -68,7 +84,7 @@ jobs: with: python-version: ${{ matrix.python-version }} poetry-version: ${{ env.POETRY_VERSION }} - poetry-install-options: "--sync --extras listen" + poetry-install-options: ${{ matrix.extras == true && '--extras listen' || '' }} - name: Run tests run: > poetry run pytest tests/ From fc02fe70157b77ea7f5975d5c188e0703106bb86 Mon Sep 17 00:00:00 2001 From: sdb9696 Date: Fri, 12 Apr 2024 18:34:02 +0100 Subject: [PATCH 3/3] Fix --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9da5a3e..ff54805 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -56,6 +56,7 @@ jobs: fail-fast: true matrix: python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "pypy-3.8", "pypy-3.10"] + os: [ubuntu-latest, macos-latest, windows-latest] extras: [false, true] exclude: - os: macos-latest