Skip to content

Commit 93df5e3

Browse files
committed
Test 21
1 parent f83d0e0 commit 93df5e3

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

.github/workflows/continous_integration.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ jobs:
1717
- name: get changed files for push
1818
if: ${{ github.event_name == 'push' }}
1919
run: |
20-
find . -type f -name "*.py" | xargs git diff --name-only --diff-filter=ACMRT ${{ github.sha }}~ ${{ github.sha }} | awk '{print $1}' | paste -d' ' -s
20+
echo ::set-env name=PYTHON_FILES::$(find . -type f -name "*.py" | xargs git diff --name-only --diff-filter=ACMRT ${{ github.sha }}~ ${{ github.sha }} | awk '{print $1}' | paste -d' ' -s)
2121
- name: get changed files for pull request
2222
if: ${{ github.event_name == 'pull_request' }}
2323
run: |
24-
git diff --name-only --diff-filter=ACMRT ${{ github.base_ref }} ${{ github.head_ref }}
24+
echo ::set-env name=PYTHON_FILES::$(git diff --name-only --diff-filter=ACMRT ${{ github.base_ref }} ${{ github.head_ref }})
2525
- name: print PYTHON_FILES
2626
run: |
2727
echo ${{ env.PYTHON_FILES }}

pgb/pow3.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
def pow(a: int, b: int) -> int:
2+
"""
3+
Power of two number
4+
5+
Args:
6+
a (int): First argument
7+
b (int): Second argument
8+
9+
Returns:
10+
Power of second arguments on the base of first argument
11+
"""
12+
return a ** b

requirements3.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pytest>=6.0.2,<7

0 commit comments

Comments
 (0)