Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update actions/cache action to v4 #47

Merged
merged 4 commits into from
Jan 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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