Skip to content

Commit

Permalink
chore(deps): update actions/cache action to v4 (#47)
Browse files Browse the repository at this point in the history
* chore(deps): update actions/cache action to v4

* Update deps

Signed-off-by: Charith Ellawala <[email protected]>

* Update deps again

Signed-off-by: Charith Ellawala <[email protected]>

* Fix test

Signed-off-by: Charith Ellawala <[email protected]>

---------

Signed-off-by: Charith Ellawala <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Charith Ellawala <[email protected]>
  • Loading branch information
renovate[bot] and charithe authored Jan 19, 2024
1 parent 4941ccc commit b84b976
Show file tree
Hide file tree
Showing 6 changed files with 236 additions and 215 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
with:
fetch-depth: 0

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
./__pypackages__
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
./__pypackages__
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## Unreleased

## v0.10.3 (2024-01-18)

### Chores
Expand Down
439 changes: 228 additions & 211 deletions pdm.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ tools = [
"setuptools>=63.2.0",
"commitizen>=3.2.2",
"ptpython>=3.0.23",
"pyyaml>=6.0.1",
]


Expand Down
5 changes: 3 additions & 2 deletions tests/http/test_http_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import json
from unittest.mock import patch

import httpcore
import pytest

from cerbos.sdk.client import *
Expand Down Expand Up @@ -389,7 +390,7 @@ async def test_request_retries_not_on_success(
assert resp.status_code == status_code
assert post_mock.call_count == 1

@patch("anyio._backends._asyncio.connect_tcp")
@patch("httpcore._backends.anyio.AnyIOBackend.connect_tcp")
async def test_connection_retries(
self,
tcp_mock,
Expand All @@ -399,7 +400,7 @@ async def test_connection_retries(
n_retries = 3
n_requests = n_retries + 1

tcp_mock.side_effect = [ConnectionRefusedError()] * n_requests
tcp_mock.side_effect = [httpcore._exceptions.ConnectError] * n_requests

client = AsyncCerbosClient(
"http://127.0.0.1:3592", connection_retries=n_retries, debug=True
Expand Down

0 comments on commit b84b976

Please sign in to comment.