@@ -15,18 +15,26 @@ jobs:
1515 nats :
1616 runs-on : ubuntu-latest
1717 timeout-minutes : 20
18- env :
19- NATS_SERVER_VERSION : ${{ matrix.nats_version }}
2018 strategy :
2119 fail-fast : false
2220 matrix :
2321 python-version : ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
24- nats_version : ["latest"]
22+ nats-server-version : ["latest"]
2523
2624 steps :
2725 - name : Check out repository
2826 uses : actions/checkout@v5
2927
28+ - name : Set up Go
29+ uses : actions/setup-go@v6
30+ with :
31+ go-version : " stable"
32+
33+ - name : Install NATS Server
34+ run : |
35+ go install github.com/nats-io/nats-server/v2@${{ matrix.nats-server-version }}
36+ shell : bash
37+
3038 - name : Set up Python ${{ matrix.python-version }}
3139 uses : actions/setup-python@v6
3240 with :
@@ -36,15 +44,15 @@ jobs:
3644 uses : astral-sh/setup-uv@v6
3745
3846 - name : Install dependencies and project
47+ # Installed outside the workspace: uv.lock is pinned to >=3.13 for the
48+ # modern packages, so it cannot resolve the 3.8-3.12 legs of this matrix.
3949 run : |
40- uv sync --dev
41- ./ nats/scripts/install_nats.sh
50+ uv venv --no-project --python python
51+ uv pip install --python .venv/bin/python --editable ./ nats --group ./nats/pyproject.toml:dev
4252
4353 - name : Run tests
4454 run : |
45- uv run pytest -x -vv -s --continue-on-collection-errors ./nats/tests
46- env :
47- PATH : $HOME/nats-server:$PATH
55+ .venv/bin/python -m pytest -x -vv -s --continue-on-collection-errors ./nats/tests
4856
4957 project :
5058 name : ${{ matrix.project }} (python-${{ matrix.python-version }}, nats-server-${{ matrix.nats-server-version }}, ${{ matrix.os }})
5462 python-version : ["3.13"]
5563 os : ["ubuntu-latest", "macos-latest", "windows-latest"]
5664 nats-server-version : ["latest"]
57- project : ["nats-server", "nats-core", "nats-key-value"]
65+ project : ["nats-server", "nats-core", "nats-jetstream", "nats- key-value"]
5866 steps :
5967 - name : Checkout repository
6068 uses : actions/checkout@v5
8290 working-directory : ${{ matrix.project }}
8391
8492 - name : Run tests for ${{ matrix.project }}
85- run : uv run pytest -v -n auto
93+ run : uv run --no-sync pytest -v -n auto
8694 working-directory : ${{ matrix.project }}
0 commit comments