Skip to content

Commit 1a19b53

Browse files
authored
fix: add separate build with only compatible Python versions
1 parent 7082d4b commit 1a19b53

File tree

1 file changed

+45
-2
lines changed

1 file changed

+45
-2
lines changed

.github/workflows/test.yml

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,10 @@ jobs:
9494
tldr tldr --markdown
9595
9696
build-windows:
97-
runs-on: ${{ matrix.os }}
97+
runs-on: windows-latest
9898

9999
strategy:
100100
matrix:
101-
os: ['windows-latest', 'windows-11-arm']
102101
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
103102

104103
steps:
@@ -138,6 +137,50 @@ jobs:
138137
tldr --version
139138
tldr tldr --markdown
140139
140+
build-windows-arm:
141+
runs-on: windows-11-arm
142+
143+
strategy:
144+
matrix:
145+
python-version: ['3.11', '3.12', '3.13']
146+
147+
steps:
148+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
149+
150+
- name: Set up Python ${{ matrix.python-version }}
151+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
152+
with:
153+
python-version: ${{ matrix.python-version }}
154+
155+
- name: Install developer dependencies
156+
run: |
157+
python3 -m pip install -U pip
158+
python3 -m pip install -U pytest pytest-runner flake8
159+
160+
- name: Install sphinx dependencies
161+
run: |
162+
python -m pip install sphinx sphinx-argparse --user
163+
164+
- name: Install tldr dependencies
165+
run:
166+
python3 -m pip install -r requirements.txt --user
167+
168+
- name: Generate the manpage
169+
working-directory: docs
170+
run: make man
171+
172+
- name: Lint codebase
173+
run: python3 -m flake8
174+
175+
- name: Run test suite
176+
run: python3 -m pytest tests/
177+
178+
- name: Test tldr cli
179+
run: |
180+
python3 -m pip install .
181+
tldr --version
182+
tldr tldr --markdown
183+
141184
build-snap:
142185
runs-on: ${{ matrix.os }}
143186
if: github.repository == 'tldr-pages/tldr-python-client' && github.ref == 'refs/heads/main'

0 commit comments

Comments
 (0)