|
5 | 5 | branches: |
6 | 6 | - 'main' |
7 | 7 | paths: |
8 | | - - 'project_a/**' |
| 8 | + - 'mkdocs_macros_utils/**' |
9 | 9 | - 'tests/**' |
10 | 10 | - 'pyproject.toml' |
11 | 11 | - 'poetry.lock' |
|
46 | 46 | - name: Check file existence |
47 | 47 | id: check_file |
48 | 48 | 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 |
50 | 50 | echo "file_exists=true" >> "$GITHUB_OUTPUT" |
51 | 51 | else |
52 | 52 | echo "file_exists=false" >> "$GITHUB_OUTPUT" |
|
95 | 95 | id: pytest |
96 | 96 | #continue-on-error: true |
97 | 97 | # 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 |
99 | 99 | # 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 |
101 | 101 | run: poetry run task test_ci_xml |
102 | 102 | - name: Pytest coverage comment |
103 | 103 | id: coverageComment |
@@ -180,7 +180,7 @@ jobs: |
180 | 180 |
|
181 | 181 | # テスト対象外のファイルに関する注記を追加(ファイルの存在確認結果に基づく) |
182 | 182 | 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" |
184 | 184 | file_path_2="staking/ton_whales_staking_dashboard.py" |
185 | 185 | file_link="https://github.com/${GITHUB_REPOSITORY}/blob/${commit_hash}/${file_path_2}" |
186 | 186 |
|
@@ -215,8 +215,8 @@ jobs: |
215 | 215 | # カバレッジレポート内のリンクを有効にするためにファイルパスを修正する |
216 | 216 | sed -i ' |
217 | 217 | 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 |
220 | 220 | ' README.md |
221 | 221 | - name: Commit and push |
222 | 222 | run: | |
|
0 commit comments