Skip to content

Commit fe0b00a

Browse files
committed
ci(pytest): install tests package variant instead of all (#703)
1 parent c9c4d53 commit fe0b00a

File tree

1 file changed

+4
-44
lines changed

1 file changed

+4
-44
lines changed

.github/workflows/ci.yml

+4-44
Original file line numberDiff line numberDiff line change
@@ -168,48 +168,8 @@ jobs:
168168
runs-on: ubuntu-20.04
169169
strategy:
170170
matrix:
171-
include:
172-
- testenv: lowest
173-
python: '3.6'
174-
175-
- testenv: release
176-
python: '3.6'
177-
178-
- testenv: lowest
179-
python: '3.7'
180-
181-
- testenv: release
182-
python: '3.7'
183-
184-
- testenv: lowest
185-
python: '3.8'
186-
187-
- testenv: release
188-
python: '3.8'
189-
190-
- testenv: lowest
191-
python: '3.9'
192-
193-
- testenv: release
194-
python: '3.9'
195-
196-
- testenv: lowest
197-
python: '3.10'
198-
199-
- testenv: release
200-
python: '3.10'
201-
202-
- testenv: lowest
203-
python: '3.11'
204-
205-
- testenv: release
206-
python: '3.11'
207-
208-
- testenv: lowest
209-
python: '3.12'
210-
211-
- testenv: release
212-
python: '3.12'
171+
testenv: [lowest, release]
172+
python: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
213173
steps:
214174
- uses: actions/checkout@v3
215175

@@ -224,10 +184,10 @@ jobs:
224184
pip install wheel
225185
pip install requirements-builder
226186
if [[ ${{ matrix.testenv }} == lowest ]]; then
227-
requirements-builder -e all --level=min --req requirements-dev.txt setup.py > .lowest-requirements.txt
187+
requirements-builder -e tests --level=min --req requirements-dev.txt setup.py > .lowest-requirements.txt
228188
fi
229189
if [[ ${{ matrix.testenv }} == release ]]; then
230-
requirements-builder -e all --level=pypi --req requirements-dev.txt setup.py > .release-requirements.txt
190+
requirements-builder -e tests --level=pypi --req requirements-dev.txt setup.py > .release-requirements.txt
231191
fi
232192
233193
- name: Install Python dependencies

0 commit comments

Comments
 (0)