Skip to content

Commit a038064

Browse files
author
github-actions[bot]
committed
💚Update workflow paths and coverage references for mkdocs_macros_utils
1 parent d8e599a commit a038064

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/test_multi_os.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches:
66
- 'main'
77
paths:
8-
- 'project_a/**'
8+
- 'mkdocs_macros_utils/**'
99
- 'tests/**'
1010
- 'pyproject.toml'
1111
- 'poetry.lock'
@@ -46,7 +46,7 @@ jobs:
4646
- name: Check file existence
4747
id: check_file
4848
run: |
49-
if [ -f "project_a/staking/ton_whales_staking_dashboard.py" ]; then
49+
if [ -f "mkdocs_macros_utils/staking/ton_whales_staking_dashboard.py" ]; then
5050
echo "file_exists=true" >> "$GITHUB_OUTPUT"
5151
else
5252
echo "file_exists=false" >> "$GITHUB_OUTPUT"
@@ -95,9 +95,9 @@ jobs:
9595
id: pytest
9696
#continue-on-error: true
9797
# Mac / Linux
98-
# run: poetry run pytest --durations=0 --junitxml=pytest.xml --cov-report xml:coverage.xml --cov=project_a tests/ | tee pytest-coverage.txt
98+
# run: poetry run pytest --durations=0 --junitxml=pytest.xml --cov-report xml:coverage.xml --cov=mkdocs_macros_utils tests/ | tee pytest-coverage.txt
9999
# Windowss
100-
# run: poetry run pytest --durations=0 --junitxml=pytest.xml --cov-report xml:coverage.xml --cov=project_a tests/ | Tee-Object -FilePath pytest-coverage.txt
100+
# run: poetry run pytest --durations=0 --junitxml=pytest.xml --cov-report xml:coverage.xml --cov=mkdocs_macros_utils tests/ | Tee-Object -FilePath pytest-coverage.txt
101101
run: poetry run task test_ci_xml
102102
- name: Pytest coverage comment
103103
id: coverageComment
@@ -180,7 +180,7 @@ jobs:
180180
181181
# テスト対象外のファイルに関する注記を追加(ファイルの存在確認結果に基づく)
182182
commit_hash=${GITHUB_SHA}
183-
file_path_1="project_a/staking/ton_whales_staking_dashboard.py"
183+
file_path_1="mkdocs_macros_utils/staking/ton_whales_staking_dashboard.py"
184184
file_path_2="staking/ton_whales_staking_dashboard.py"
185185
file_link="https://github.com/${GITHUB_REPOSITORY}/blob/${commit_hash}/${file_path_2}"
186186
@@ -215,8 +215,8 @@ jobs:
215215
# カバレッジレポート内のリンクを有効にするためにファイルパスを修正する
216216
sed -i '
217217
s|/blob/undefined/\([^"]*\)|/blob/'"${commit_hash}"'/\1|g;
218-
s|/blob/\([a-f0-9]*\)/\([^"]*\)|/blob/\1/project_a/\2|g;
219-
s|/blob/\([a-f0-9]*\)/project_a/README\.md|/blob/\1/README.md|g
218+
s|/blob/\([a-f0-9]*\)/\([^"]*\)|/blob/\1/mkdocs_macros_utils/\2|g;
219+
s|/blob/\([a-f0-9]*\)/mkdocs_macros_utils/README\.md|/blob/\1/README.md|g
220220
' README.md
221221
- name: Commit and push
222222
run: |

0 commit comments

Comments
 (0)