Skip to content

Commit 336f746

Browse files
update makefile
1 parent 703d3d3 commit 336f746

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

.github/workflows/main.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
uses: paambaati/[email protected]
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

Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,26 @@
11
install:
22
uv sync
3+
34
brain-games:
45
uv run brain-games
6+
57
build:
68
uv build
9+
710
package-install:
811
uv tool install dist/*.whl
12+
913
lint:
1014
uv run ruff check brain_games
15+
1116
fix:
1217
uv run ruff check --fix brain_games
18+
1319
uninstall 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

0 commit comments

Comments
 (0)