Skip to content

Commit

Permalink
Fixed one github-workflow test issue.
Browse files Browse the repository at this point in the history
Also enabled a matrix of tests.
  • Loading branch information
frobnitzem committed Oct 9, 2024
1 parent 17e7089 commit 189dba3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@ jobs:
strategy:
fail-fast: false
matrix:
#os: ["ubuntu-latest", "macos-latest"]
os: ["ubuntu-latest"]
#python-version: ["3.9", "3.11"]
python-version: ["3.9"]
os: ["ubuntu-latest", "macos-latest"]
python-version: ["3.9", "3.11"]

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![CI](https://github.com/ORNL/certified/actions/workflows/python-package.yml/badge.svg)](https://github.com/ORNL/certified/actions)
<!--[![Coverage](https://codecov.io/github/ORNL/certified/branch/main/graph/badge.svg)](https://app.codecov.io/gh/ORNL/certified)-->
[![Docs](https://readthedocs.org/projects/certified/badge/)](https://certified.readthedocs.io)
<!--[![Coverage](https://codecov.io/github/ORNL/certified/branch/main/graph/badge.svg)](https://app.codecov.io/gh/ORNL/certified)-->


# Certified
Expand Down
6 changes: 3 additions & 3 deletions certified/encode.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@

class PrivIface:
def __init__(self, keytype : str) -> None:
self.ed : Optional[type[
ed25519.Ed25519PrivateKey|ed448.Ed448PrivateKey
] ] = None
self.ed : Optional[type[Union[
ed25519.Ed25519PrivateKey,ed448.Ed448PrivateKey
]]] = None
self.ec : Optional[ Any ] = None
if keytype == "ed25519":
self.ed = ed25519.Ed25519PrivateKey
Expand Down
7 changes: 5 additions & 2 deletions tests/test_ca.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@
def client(sock, data) -> None:
print('Sending: {}'.format(data))
sock.send(data.encode())
rep = sock.recv(128)
print('Received: {}'.format(rep))
try:
rep = sock.recv(128)
print('Received: {}'.format(rep))
except ConnectionResetError:
pass

@ssl_ify("server")
def echo_server(sock) -> None:
Expand Down

0 comments on commit 189dba3

Please sign in to comment.