Skip to content

Add CI workflow for linting and testing #3

Add CI workflow for linting and testing

Add CI workflow for linting and testing #3

Triggered via push March 18, 2024 13:36
Status Failure
Total duration 1m 53s
Artifacts

ci.yml

on: push
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

19 errors and 4 warnings
Ruff (E501): examples/client.py#L67
examples/client.py:67:89: E501 Line too long (93 > 88)
Ruff (E731): examples/server.py#L86
examples/server.py:86:13: E731 Do not assign a `lambda` expression, use a `def`
Ruff (E731): examples/server.py#L87
examples/server.py:87:13: E731 Do not assign a `lambda` expression, use a `def`
Ruff (E731): examples/server.py#L89
examples/server.py:89:13: E731 Do not assign a `lambda` expression, use a `def`
Ruff (E731): examples/server.py#L90
examples/server.py:90:13: E731 Do not assign a `lambda` expression, use a `def`
Ruff (SIM105): examples/server.py#L162
examples/server.py:162:9: SIM105 Use `contextlib.suppress(BlockingIOError)` instead of `try`-`except`-`pass`
lint: examples/server_asyncio.py#L87
Method "connection_made" overrides class "BaseProtocol" in an incompatible manner   Parameter 2 type mismatch: base parameter is type "BaseTransport", override parameter is type "WriteTransport"     "BaseTransport" is incompatible with "WriteTransport" (reportIncompatibleMethodOverride)
lint: examples/server_asyncio.py#L242
Method "connection_made" overrides class "BaseProtocol" in an incompatible manner   Parameter 2 type mismatch: base parameter is type "BaseTransport", override parameter is type "WriteTransport"     "BaseTransport" is incompatible with "WriteTransport" (reportIncompatibleMethodOverride)
lint: src/vmess_aead/headers/response.py#L51
"command_id" overrides symbol of same name in class "VMessResponseCommand"   Variable is mutable so its type is invariant     Override type "Literal[1]" is not the same as base type "int" (reportIncompatibleVariableOverride)
lint
3 errors
test (3.10, ubuntu-latest)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
test (3.12, ubuntu-latest)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
test (3.11, ubuntu-latest)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
test (3.11, macos-latest)
Codecov: Failed to properly upload report: The process '/Users/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
test (3.12, macos-latest)
Codecov: Failed to properly upload report: The process '/Users/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
test (3.10, macos-latest)
Codecov: Failed to properly upload report: The process '/Users/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
test (3.12, windows-latest)
Codecov: Failed to properly upload report: The process 'D:\a\_actions\codecov\codecov-action\v4\dist\codecov.exe' failed with exit code 1
test (3.10, windows-latest)
Codecov: Failed to properly upload report: The process 'D:\a\_actions\codecov\codecov-action\v4\dist\codecov.exe' failed with exit code 1
test (3.11, windows-latest)
Codecov: Failed to properly upload report: The process 'D:\a\_actions\codecov\codecov-action\v4\dist\codecov.exe' failed with exit code 1
lint: examples/server.py#L1
Import "gevent.monkey" could not be resolved from source (reportMissingModuleSource)
lint: examples/server.py#L15
Import "gevent" could not be resolved from source (reportMissingModuleSource)
lint: examples/server.py#L16
Import "gevent.event" could not be resolved from source (reportMissingModuleSource)
lint: examples/server.py#L17
Import "gevent.server" could not be resolved from source (reportMissingModuleSource)