Skip to content

Commit 7cde9ce

Browse files
authored
🐎 ci: test no longer update token (#21)
* 🐎 ci: test use oidc * 🧪 test: 触发测试
1 parent 132773b commit 7cde9ce

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

.github/workflows/codecov.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,10 @@ jobs:
5353
uses: codecov/test-results-action@v1
5454
with:
5555
env_vars: PYTHON_VERSION,PYDANTIC_VERSION
56+
use_oidc: true
5657

5758
- name: Upload coverage to Codecov
5859
uses: codecov/codecov-action@v5
5960
with:
60-
env_vars: PYTHON_VERSION,PYDANTIC_VERSION
61+
env_vars: PYTHON_VERSION,PYDANTIC_VERSION
62+
use_oidc: true

pyproject.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,13 @@ test = "uv run pytest --cov=src --cov-report xml --junitxml=./junit.xml -n auto"
6464
bump = "uv run bump-my-version bump"
6565
show-bump = "uv run bump-my-version show-bump"
6666

67+
[tool.coverage.report]
68+
exclude_lines = [
69+
"raise NotImplementedError",
70+
"if TYPE_CHECKING:",
71+
"@overload",
72+
"except ImportError:",
73+
]
6774

6875
[tool.ruff]
6976
line-length = 120

tests/plugin_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ async def test_pip(app: App):
1111

1212
event = fake_group_message_event_v11(message="pip install nonebot2")
1313
try:
14-
from nonebot_plugin_template import pip
14+
from nonebot_plugin_template import pip # type:ignore
1515
except ImportError:
1616
pytest.skip("nonebot_plugin_template.pip not found")
1717

0 commit comments

Comments
 (0)