@@ -2,29 +2,37 @@ name: build
22
33on :
44 push :
5- branches : ['*' ]
5+ branches : ["*" ]
66 pull_request :
77
88jobs :
99 build :
1010 if : " !contains(github.event.head_commit.message, 'skip-ci')"
1111 runs-on : ubuntu-latest
12+ strategy :
13+ matrix :
14+ python-version : ["3.10", "3.9", "3.8", "3.7"]
1215 steps :
13- - uses : actions/checkout@v2
16+ - uses : actions/checkout@v3
1417
15- - name : Set up Python 3.6
16- uses : actions/setup-python@v2
18+ - name : Install poetry
19+ run : pipx install poetry
20+
21+ - uses : actions/setup-python@v3
1722 with :
18- python-version : ' 3.6'
23+ python-version : ${{ matrix.python-version }}
24+ cache : poetry
1925
20- - name : Install
21- run : python3 -m pip install -r requirements/build.txt
26+ - name : Install dependencies
27+ run : |
28+ poetry env use ${{ matrix.python-version }}
29+ poetry install --no-interaction
2230
2331 - name : Lint
24- run : make lint
32+ run : poetry run poe lint
2533
26- - name : Test & Coverage
27- run : make coverage
34+ - name : Test Coverage
35+ run : poetry run coverage run
2836
2937 - name : Coveralls.io notification
3038 uses : AndreMiras/coveralls-python-action@develop
3644 needs : build
3745 runs-on : ubuntu-latest
3846 steps :
39- - name : Coveralls Finished
40- uses : AndreMiras/coveralls-python-action@develop
41- with :
42- parallel-finished : true
47+ - name : Coveralls Finished
48+ uses : AndreMiras/coveralls-python-action@develop
49+ with :
50+ parallel-finished : true
0 commit comments