diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bcc2eae..ff54805 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,41 @@ 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"] + os: [ubuntu-latest, macos-latest, windows-latest] + 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 +85,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/ 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",