File tree Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -17,11 +17,11 @@ jobs:
17
17
- name : get changed files for push
18
18
if : ${{ github.event_name == 'push' }}
19
19
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)
21
21
- name : get changed files for pull request
22
22
if : ${{ github.event_name == 'pull_request' }}
23
23
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 }})
25
25
- name : print PYTHON_FILES
26
26
run : |
27
27
echo ${{ env.PYTHON_FILES }}
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
1
+ pytest>=6.0.2,<7
You can’t perform that action at this time.
0 commit comments