Skip to content

Commit 79988a7

Browse files
committed
chore(ci): simlify with matrices
1 parent 8671f97 commit 79988a7

File tree

1 file changed

+19
-82
lines changed

1 file changed

+19
-82
lines changed

.circleci/config.yml

Lines changed: 19 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -376,100 +376,37 @@ workflows:
376376
- build
377377
- test:
378378
<<: *base-job
379-
python_version: "py37"
380-
event_loop: "asyncio"
381-
name: "test-py37-asyncio"
379+
matrix:
380+
alias: "test-cpython-asyncio"
381+
parameters:
382+
event_loop: ["asyncio"]
383+
python_version: ["py37", "py38", "py39", "py310", "py311"]
382384
requires: *phase1
383385
- test:
384386
<<: *base-job
385-
name: "test-py38-asyncio"
386-
python_version: "py38"
387-
event_loop: "asyncio"
388-
requires: *phase1
389-
- test:
390-
<<: *base-job
391-
name: "test-py39-asyncio"
392-
python_version: "py39"
393-
event_loop: "asyncio"
394-
requires: *phase1
395-
- test:
396-
<<: *base-job
397-
name: test-py310-asyncio
398-
python_version: "py310"
399-
event_loop: "asyncio"
400-
requires: *phase1
401-
- test:
402-
<<: *base-job
403-
name: "test-py311-asyncio"
404-
python_version: "py311"
405-
event_loop: "asyncio"
406-
requires: *phase1
407-
- test:
408-
<<: *base-job
409-
name: "test-py37-uvloop"
410-
python_version: "py37"
411-
event_loop: "uvloop"
387+
matrix:
388+
alias: "test-pypy-asyncio"
389+
parameters:
390+
event_loop: ["asyncio"]
391+
python_version: ["pypy38", "pypy39"]
412392
requires: &phase2
413-
- build
414-
- docs
415-
- test-py37-asyncio
416-
- test-py38-asyncio
417-
- test-py39-asyncio
418-
- test-py310-asyncio
419-
- test-py311-asyncio
420-
- test:
421-
<<: *base-job
422-
name: "test-py38-uvloop"
423-
python_version: "py38"
424-
event_loop: "uvloop"
425-
requires: *phase2
426-
- test:
427-
<<: *base-job
428-
name: "test-py39-uvloop"
429-
python_version: "py39"
430-
event_loop: "uvloop"
431-
requires: *phase2
432-
- test:
433-
<<: *base-job
434-
name: "test-py310-uvloop"
435-
python_version: "py310"
436-
event_loop: "uvloop"
437-
requires: *phase2
438-
- test:
439-
<<: *base-job
440-
name: "test-py311-uvloop"
441-
python_version: "py311"
442-
event_loop: "uvloop"
443-
requires: *phase2
444-
- test:
445-
<<: *base-job
446-
name: "test-pypy38-asyncio"
447-
python_version: "pypy38"
448-
event_loop: "asyncio"
449-
requires: *phase2
393+
- test-cpython-asyncio
450394
- test:
451395
<<: *base-job
452-
name: "test-pypy39-asyncio"
453-
python_version: "pypy39"
454-
event_loop: "asyncio"
396+
matrix:
397+
alias: "test-cpython-uvloop"
398+
parameters:
399+
event_loop: ["uvloop"]
400+
python_version: ["py37", "py38", "py39", "py310", "py311"]
455401
requires: *phase2
456402
- coverage:
457403
<<: *base-job
458404
requires: &phase3
459405
- build
460406
- docs
461-
- test-py37-asyncio
462-
- test-py38-asyncio
463-
- test-py39-asyncio
464-
- test-py310-asyncio
465-
- test-py311-asyncio
466-
- test-py37-uvloop
467-
- test-py38-uvloop
468-
- test-py39-uvloop
469-
- test-py310-uvloop
470-
- test-py311-uvloop
471-
- test-pypy38-asyncio
472-
- test-pypy39-asyncio
407+
- test-cpython-asyncio
408+
- test-cpython-uvloop
409+
- test-pypy-asyncio
473410
- deploy:
474411
requires: *phase3
475412
context:

0 commit comments

Comments
 (0)