Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/Julius2342/pyvlx into dep…
Browse files Browse the repository at this point in the history
…endabot/pip/pytest-8.3.3
  • Loading branch information
pawlizio committed Sep 12, 2024
2 parents 2b6f48a + ae9af15 commit c16382e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ jobs:
matrix:
python-version: ["3.11", "3.12"]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip packages
uses: actions/cache@v2
uses: actions/cache@v4
env:
cache-name: cache-pypi-modules
with:
Expand All @@ -31,7 +31,7 @@ jobs:
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
- name: Cache pre-commit packages
uses: actions/cache@v2
uses: actions/cache@v4
env:
cache-name: cache-pre-commit
with:
Expand All @@ -55,10 +55,11 @@ jobs:
- name: Isort
run: isort --check-only test examples pyvlx
- name: Upload coverage artifact
uses: actions/upload-artifact@v2.2.2
uses: actions/upload-artifact@v4
with:
name: coverage-${{ matrix.python-version }}
path: .coverage
include-hidden-files: true

coverage:
name: Process test coverage
Expand All @@ -68,13 +69,13 @@ jobs:
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip packages
uses: actions/cache@v2
uses: actions/cache@v4
env:
cache-name: cache-pypi-modules
with:
Expand All @@ -84,7 +85,7 @@ jobs:
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
- name: Cache pre-commit packages
uses: actions/cache@v2
uses: actions/cache@v4
env:
cache-name: cache-pre-commit
with:
Expand All @@ -97,14 +98,14 @@ jobs:
run: |
pip install -r requirements/testing.txt
- name: Download all coverage artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
- name: Create coverage report
run: |
coverage combine coverage*/.coverage*
coverage report --fail-under=79
coverage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion pyvlx/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def write(self, frame: FrameBase) -> None:
@staticmethod
def create_ssl_context() -> ssl.SSLContext:
"""Create and return SSL Context."""
ssl_context = ssl.create_default_context(ssl.Purpose.SERVER_AUTH)
ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
ssl_context.check_hostname = False
ssl_context.verify_mode = ssl.CERT_NONE
return ssl_context
Expand Down
2 changes: 1 addition & 1 deletion test/frame_get_local_time_cfm_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def test_bytes(self) -> None:
def test_frame_from_raw(self) -> None:
"""Test parse FrameGetLocalTimeConfirmation from raw."""
frame = frame_from_raw(
b"\x00\x12 \x05\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x007"
b"\x00\x12 \x05_\xc9,'\x13\x13\x12\x03\x0c\x00x\x04\x01R\xffg"
)
self.assertTrue(isinstance(frame, FrameGetLocalTimeConfirmation))

Expand Down

0 comments on commit c16382e

Please sign in to comment.