Skip to content

Commit

Permalink
Enable windows, macos and pypy in the CI (#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdb9696 committed Apr 12, 2024
1 parent 794b081 commit f66af01
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 11 deletions.
37 changes: 27 additions & 10 deletions .github/workflows/ci.yml
Expand Up @@ -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: |
Expand All @@ -43,32 +43,49 @@ 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
uses: ./.github/actions/setup
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/
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Expand Up @@ -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",
Expand Down

0 comments on commit f66af01

Please sign in to comment.