File tree Expand file tree Collapse file tree 2 files changed +19
-6
lines changed Expand file tree Collapse file tree 2 files changed +19
-6
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 11[project ]
22name = " leetcode75"
33version = " 0.1.0"
4- description = " Add your description here "
4+ description = " LeetCode top 75 interview questions "
55requires-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+ ]
You can’t perform that action at this time.
0 commit comments