mirror of
https://github.com/emqx/neuron.git
synced 2026-10-25 03:10:21 +08:00
@@ -141,7 +141,7 @@ jobs:
|
||||
run: |
|
||||
pip install -U pytest
|
||||
pip install requests
|
||||
pytest -s tests/ft
|
||||
pytest -s -v tests/ft
|
||||
|
||||
- name: Upload coverage to Codecov
|
||||
uses: codecov/codecov-action@v3
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
import pytest
|
||||
|
||||
|
||||
def pytest_addoption(parser):
|
||||
parser.addoption(
|
||||
"--env", default="github", choices=["github", "test"], help="enviroment parameter"
|
||||
)
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True, scope="session")
|
||||
def get_envx(request):
|
||||
return request.config.getoption("--env")
|
||||
+6
-1
@@ -1,3 +1,8 @@
|
||||
[pytest]
|
||||
python_files = test_*.py
|
||||
python_functions = test_*
|
||||
python_functions = test_*
|
||||
|
||||
addopts = --strict-markers
|
||||
|
||||
markers =
|
||||
test : 'test'
|
||||
|
||||
Reference in New Issue
Block a user