Skip to content

Commit 4e089fd

Browse files
committed
chore(ci): split check between windows and linux
1 parent f454006 commit 4e089fd

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696
9797
- name: Check for repository changes
9898
# TODO: python 3.13 slightly changed the output of argparse.
99-
if: (matrix.python-version != '3.13')
99+
if: ${{ (matrix.python-version != '3.13') && (runner.os != 'Windows') }}
100100
run: |
101101
if [ -n "$(git status --porcelain)" ]; then
102102
echo "Repository is dirty, changes detected:"
@@ -107,6 +107,19 @@ jobs:
107107
echo "Repository is clean, no changes detected."
108108
fi
109109
110+
- name: Check for repository changes
111+
if: ${{ runner.os == 'Windows' && (matrix.python-version != '3.13') }}
112+
run: |
113+
if (git status --porcelain) {
114+
Write-Host "Repository is dirty, changes detected:"
115+
git status
116+
git diff
117+
exit 1
118+
}
119+
else {
120+
Write-Host "Repository is clean, no changes detected."
121+
}
122+
110123
- name: Backtesting (multi)
111124
run: |
112125
freqtrade create-userdir --userdir user_data

0 commit comments

Comments
 (0)