Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 72c7f34

Browse files
committed
feat: add optional deps
1 parent a883969 commit 72c7f34

File tree

2 files changed

+19
-6
lines changed

2 files changed

+19
-6
lines changed

‎.github/workflows/run_tests.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,23 @@ jobs:
1818
- name: Install dependencies
1919
run: |
2020
python -m pip install --upgrade pip
21-
pip install pytest pytest-cov # Можно добавить другие зависимости
21+
pip install -e .[test]
2222
2323
- name: Run pytest
2424
run: |
25-
pytest --cov=./ --cov-report=xml -v
25+
pytest --cov=./ --cov-report=xml --junitxml=junit_report.xml -v
2626
2727
- name: Upload coverage report
2828
uses: actions/upload-artifact@v4
29+
if: always()
2930
with:
3031
name: coverage-report
31-
path: coverage.xml
32+
path: |
33+
junit_report.xml
34+
coverage.xml
35+
36+
- name: Publish Unit Test Results
37+
uses: EnricoMi/publish-unit-test-result-action@v2
38+
if: always()
39+
with:
40+
junit_files: junit_report.xml

‎pyproject.toml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
[project]
22
name = "leetcode75"
33
version = "0.1.0"
4-
description = "Add your description here"
4+
description = "LeetCode top 75 interview questions"
55
requires-python = ">=3.13"
6-
dependencies = [
7-
"pre-commit==4.2.0",
6+
dependencies = []
7+
[project.optional-dependencies]
8+
test = [
89
"pytest==8.4.1",
910
"pytest-cov==6.2.1",
1011
]
12+
dev = [
13+
"pre-commit==4.2.0",
14+
]

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /