@@ -49,57 +49,57 @@ jobs:
4949
5050 unittest-linux :
5151 runs-on : ubuntu-latest
52- strategy :
53- matrix :
54- python-version : ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
55-
56- services :
57- redis-standalone :
58- image : redis:alpine
59- options : >-
60- --health-cmd "redis-cli ping | grep PONG"
61- --health-interval 10s
62- --health-timeout 5s
63- --health-retries 5
64- ports :
65- - 6379:6379
52+ # strategy:
53+ # matrix:
54+ # python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
55+
56+ # services:
57+ # redis-standalone:
58+ # image: redis:alpine
59+ # options: >-
60+ # --health-cmd "redis-cli ping | grep PONG"
61+ # --health-interval 10s
62+ # --health-timeout 5s
63+ # --health-retries 5
64+ # ports:
65+ # - 6379:6379
6666
6767 steps :
6868 - uses : actions/checkout@v5
6969
70- - name : Install uv
71- uses : astral-sh/setup-uv@v6
72- with :
73- enable-cache : true
74- python-version : ${{ matrix.python-version }}
70+ # - name: Install uv
71+ # uses: astral-sh/setup-uv@v6
72+ # with:
73+ # enable-cache: true
74+ # python-version: ${{ matrix.python-version }}
7575
76- - name : Cache of Ruff PyTest and MyPY
77- uses : actions/cache@v4
78- with :
79- path : |
80- .mypy_cache
81- .pytest_cache
82- .ruff_cache
83- key : mypy-pytest-ruff
76+ # - name: Cache of Ruff PyTest and MyPY
77+ # uses: actions/cache@v4
78+ # with:
79+ # path: |
80+ # .mypy_cache
81+ # .pytest_cache
82+ # .ruff_cache
83+ # key: mypy-pytest-ruff
8484
85- - name : Install the project
86- env :
87- SETUPTOOLS_SCM_PRETEND_VERSION : " 0"
88- run : uv sync --all-extras --no-dev --group test --group typed
85+ # - name: Install the project
86+ # env:
87+ # SETUPTOOLS_SCM_PRETEND_VERSION: "0"
88+ # run: uv sync --all-extras --no-dev --group test --group typed
8989
90- - name : Lint check with ruff
91- uses : astral-sh/ruff-action@v3
90+ # - name: Lint check with ruff
91+ # uses: astral-sh/ruff-action@v3
9292
93- - name : Static check with mypy
94- run : uv run --no-dev mypy
93+ # - name: Static check with mypy
94+ # run: uv run --no-dev mypy
9595
96- - name : Run tests
97- run : uv run --no-dev pytest -x --cov --cov-report=xml
96+ # - name: Run tests
97+ # run: uv run --no-dev pytest -x --cov --cov-report=xml
9898
99- - name : Upload coverage to Codecov
100- uses : codecov/codecov-action@v5
101- with :
102- token : ${{ secrets.CODECOV_TOKEN }}
99+ # - name: Upload coverage to Codecov
100+ # uses: codecov/codecov-action@v5
101+ # with:
102+ # token: ${{ secrets.CODECOV_TOKEN }}
103103
104104 unittest-macos :
105105 runs-on : macos-latest
@@ -209,6 +209,33 @@ jobs:
209209 if (-not $ok) { Write-Error "redis did not start"; exit 1 }
210210 Write-Host "redis is up"
211211
212+ - name : check redis listening & connectivity
213+ shell : pwsh
214+ run : |
215+ Get-Process -Name redis* -ErrorAction SilentlyContinue | Format-Table -AutoSize
216+ netstat -ano | Select-String ":6379"
217+ if (Get-Command redis-cli -ErrorAction SilentlyContinue) {
218+ & redis-cli ping
219+ } else {
220+ Write-Host "redis-cli not found"
221+ }
222+ $hosts = @('127.0.0.1','::1','localhost')
223+ foreach ($h in $hosts) {
224+ try {
225+ $tcp = New-Object System.Net.Sockets.TcpClient
226+ $ar = $tcp.BeginConnect($h,6379,$null,$null)
227+ $wait = $ar.AsyncWaitHandle.WaitOne(1000)
228+ if ($wait -and $tcp.Connected) {
229+ Write-Host "OK $h"
230+ $tcp.Close()
231+ } else {
232+ Write-Host "FAIL $h"
233+ }
234+ } catch {
235+ Write-Host "FAIL $h $_"
236+ }
237+ }
238+
212239 - name : Run tests
213240 shell : pwsh
214241 run : |
0 commit comments