File tree Expand file tree Collapse file tree 6 files changed +482
-53
lines changed Expand file tree Collapse file tree 6 files changed +482
-53
lines changed Original file line number Diff line number Diff line change 1919 runs-on : ubuntu-latest
2020
2121 steps :
22- - uses : actions/checkout@v3
22+ - uses : actions/checkout@v4
2323
2424 - name : Set variables
2525 run : |
Original file line number Diff line number Diff line change @@ -16,16 +16,16 @@ jobs:
1616 runs-on : ubuntu-latest
1717
1818 steps :
19- - uses : actions/checkout@v3
19+ - uses : actions/checkout@v4
2020
2121 - name : Setup JDK
22- uses : actions/setup-java@v3
22+ uses : actions/setup-java@v4
2323 with :
2424 distribution : " zulu"
2525 java-version : " 21"
2626
2727 - name : Setup Gradle
28- uses : gradle/gradle-build-action@v2
28+ uses : gradle/gradle-build-action@v3
2929
3030 - name : Test
3131 working-directory : ${{github.workspace}}/java-algorithm
Original file line number Diff line number Diff line change 11---
2- name : Python Test
2+ name : Python Poetry Test
33
44on :
55 # push:
@@ -16,19 +16,20 @@ jobs:
1616 runs-on : ubuntu-latest
1717
1818 steps :
19- - uses : actions/checkout@v3
19+ - uses : actions/checkout@v4
2020
2121 - name : Setup Python
22- uses : actions/setup-python@v3
22+ uses : actions/setup-python@v5
2323 with :
24- python-version : " 3.10 "
24+ python-version : " 3.11 "
2525
2626 - name : Install dependencies
2727 working-directory : ${{github.workspace}}/python-algorithm
2828 run : |
2929 python -m pip install --upgrade pip
30- pip install -r ./requirements.txt
30+ pip install poetry
31+ poetry install --with test
3132
3233 - name : Test
3334 working-directory : ${{github.workspace}}/python-algorithm
34- run : pytest
35+ run : poetry run pytest
Original file line number Diff line number Diff line change 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 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 )
66
77[ English] ( README.md ) | [ Korean] ( README_ko-KR.md )
88
Original file line number Diff line number Diff line change 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 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 )
66
77[ English] ( README.md ) | [ Korean] ( README_ko-KR.md )
88
You can’t perform that action at this time.
0 commit comments