File tree Expand file tree Collapse file tree 2 files changed +43
-0
lines changed Expand file tree Collapse file tree 2 files changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Python CI
2+
3+ on :
4+ - push
5+ - pull_request
6+
7+ jobs :
8+ build :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v4
12+ - name : Set up Python
13+ uses : actions/setup-python@v5
14+ with :
15+ python-version : ' 3.12'
16+ # make depends on uv
17+ - name : Install dependencies
18+ run : |
19+ pip install uv
20+ make install
21+ - name : Run linter and pytest
22+ run : |
23+ make check
24+ - name : Test & publish code coverage
25+ 26+ if : github.ref_name == 'main'
27+ env :
28+ CC_TEST_REPORTER_ID : ${{ secrets.CC_TEST_REPORTER_ID }}
29+ with :
30+ coverageCommand : make test-coverage
31+ debug : true
Original file line number Diff line number Diff line change 11install :
22 uv sync
3+
34brain-games :
45 uv run brain-games
6+
57build :
68 uv build
9+
710package-install :
811 uv tool install dist/* .whl
12+
913lint :
1014 uv run ruff check brain_games
15+
1116fix :
1217 uv run ruff check --fix brain_games
18+
1319uninstall hexlet-code :
1420 uv tool uninstall hexlet-code
21+
22+ test-coverage :
23+ uv run pytest --cov=gendiff tests --cov-report xml
24+
25+ check :
26+ uv run pytest
You can’t perform that action at this time.
0 commit comments