Skip to content

Commit 14622f7

Browse files
committed
chore: update python workflow
1 parent 27c56cc commit 14622f7

File tree

4 files changed

+474
-46
lines changed

4 files changed

+474
-46
lines changed

.github/workflows/python.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: Python Test
2+
name: Python Poetry Pytest
33

44
on:
55
# push:
@@ -27,8 +27,8 @@ jobs:
2727
working-directory: ${{github.workspace}}/python-algorithm
2828
run: |
2929
python -m pip install --upgrade pip
30-
pip install -r ./requirements.txt
30+
poetry install
3131
3232
- name: Test
3333
working-directory: ${{github.workspace}}/python-algorithm
34-
run: pytest
34+
run: poetry run pytest

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<!-- markdownlint-disable MD033 MD036 -->
44

5-
![C++ CMake Test](https://github.com/codejsha/algorithm-examples/actions/workflows/cmake.yml/badge.svg) ![Python Test](https://github.com/codejsha/algorithm-examples/actions/workflows/python.yml/badge.svg) ![Java Gradle Test](https://github.com/codejsha/algorithm-examples/actions/workflows/gradle.yml/badge.svg)
5+
![C++ CMake Test](https://github.com/codejsha/algorithm-examples/actions/workflows/cmake.yml/badge.svg) ![Python Poetry Pytest](https://github.com/codejsha/algorithm-examples/actions/workflows/python.yml/badge.svg) ![Java Gradle Test](https://github.com/codejsha/algorithm-examples/actions/workflows/gradle.yml/badge.svg)
66

77
[English](README.md) | [Korean](README_ko-KR.md)
88

README_ko-KR.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<!-- markdownlint-disable MD033 MD036 -->
44

5-
![C++ CMake Test](https://github.com/codejsha/algorithm-examples/actions/workflows/cmake.yml/badge.svg) ![Python Test](https://github.com/codejsha/algorithm-examples/actions/workflows/python.yml/badge.svg) ![Java Gradle Test](https://github.com/codejsha/algorithm-examples/actions/workflows/gradle.yml/badge.svg)
5+
![C++ CMake Test](https://github.com/codejsha/algorithm-examples/actions/workflows/cmake.yml/badge.svg) ![Python Poetry Pytest](https://github.com/codejsha/algorithm-examples/actions/workflows/python.yml/badge.svg) ![Java Gradle Test](https://github.com/codejsha/algorithm-examples/actions/workflows/gradle.yml/badge.svg)
66

77
[English](README.md) | [Korean](README_ko-KR.md)
88

0 commit comments

Comments
 (0)