Skip to content

Commit da7eee5

Browse files
committed
fix CI
1 parent 167e64c commit da7eee5

File tree

1 file changed

+31
-4
lines changed

1 file changed

+31
-4
lines changed

.github/workflows/tests.yaml

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,56 @@ jobs:
1818
python-version: ["3.10", "3.11", "3.12.0-beta.4"]
1919

2020
steps:
21-
- name: Checkout code
21+
- name: Checkout repo
2222
uses: actions/checkout@v3
2323

2424
- name: Set up Python
2525
uses: actions/setup-python@v4
2626
with:
2727
python-version: ${{ matrix.python-version }}
2828

29-
- name: Install tree (only macOS)
29+
- name: Install tree (macOS)
3030
if: matrix.os == 'macos-latest'
3131
run: brew install tree
3232

33+
- name: Install tree (Windows)
34+
if: matrix.os == 'windows-latest'
35+
run: Install-Module PSScriptTools -scope CurrentUser -force
36+
37+
- name: Install tree (Linux)
38+
if: matrix.os == 'ubuntu-latest'
39+
run: sudo apt install tree
40+
3341
- name: Install the package
3442
run: pip install .
3543

3644
- name: Run the package
3745
run: bootstrapper tr -b 3.12
3846

39-
- name: See results
40-
shell: bash
47+
- name: See results (non-Windows)
48+
if: matrix.os != 'windows-latest'
4149
run: |
4250
cd python-docs-tr
4351
tree . -L 2
52+
echo "================================"
53+
echo "Check if everything is OK (clean paths, correct syntax)"
54+
echo "================================"
55+
cat about.po
56+
echo "================================"
57+
echo "Check if everything is OK (clean paths, correct syntax)"
58+
echo "================================"
59+
cat library/functions.po
60+
61+
- name: See results (Windows)
62+
if: matrix.os == 'windows-latest'
63+
run: |
64+
cd python-docs-tr
65+
Show-Tree . -Depth 2 -ShowItem
66+
echo "================================"
67+
echo "Check if everything is OK (clean paths, correct syntax)"
68+
echo "================================"
4469
cat about.po
4570
echo "================================"
71+
echo "Check if everything is OK (clean paths, correct syntax)"
72+
echo "================================"
4673
cat library/functions.po

0 commit comments

Comments
 (0)