Skip to content

Commit 4e08d0b

Browse files
committed
update: build 설치를 workflow에서 설치하도록 다시 변경
1 parent f6e5318 commit 4e08d0b

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

.github/workflows/build_test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,7 @@ jobs:
1717
image: python:${{ matrix.python-version }}
1818
steps:
1919
- uses: actions/checkout@v3
20+
- name: Install build package
21+
run: pip install build
2022
- name: Build package
2123
run: python build_package.py

build_package.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,7 @@ def swap_version_with_tag(
4747
print(result)
4848

4949

50-
def build_package(is_debug: bool):
51-
if is_debug is not True:
52-
res = os.system("pip install build")
53-
assert res == 0, f"The building process failed. code = {res}"
50+
def build_package():
5451
res = os.system("python -m build")
5552
assert res == 0, f"The building process failed. code = {res}"
5653

@@ -63,9 +60,7 @@ def main(args: argparse.Namespace):
6360
version_text=VERSION_TEXT,
6461
is_debug=is_debug,
6562
)
66-
build_package(
67-
is_debug=is_debug,
68-
)
63+
build_package()
6964

7065

7166
if __name__ == "__main__":

0 commit comments

Comments
 (0)