Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
srz-zumix committed May 1, 2024
1 parent 097a273 commit 36dd91e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/io-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- name: Create TestData
run: |
cat << 'EOS' > io-test.j2
{% for f in "." | listdir_dirs %}./{{ f }}
{% for f in "./.github" | listdir_dirs %}./{{ f }}
{% endfor -%}
EOS
- name: kamidana
Expand All @@ -22,7 +22,7 @@ jobs:
tee: true
- name: Test
run: |
find . -type d -mindepth 1 -maxdepth 1 >> output.txt
find ./.github -type d -mindepth 1 -maxdepth 1 >> output.txt
diff output.txt test.txt
- run: |
cat output.txt
Expand Down
5 changes: 0 additions & 5 deletions additionals/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,3 @@ def listdir_files(ctx, v):
@pass_context
def listdir_dirs(ctx, v):
return [f for f in os.listdir(str(v)) if os.path.isdir(f)]
# dirs = []
# for f in os.listdir(str(v)):
# if os.path.isdir(f):
# dirs.append(f)
# return dirs

0 comments on commit 36dd91e

Please sign in to comment.