1- # This workflow will install Python dependencies, run tests and lint with a single version of Python
2- # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3-
41name : Cross-platform unittest
52
63on :
@@ -18,28 +15,28 @@ jobs:
1815 runs-on : ${{ matrix.os }}
1916 strategy :
2017 matrix :
21- os : [ubuntu-latest, macos-latest, windows-latest]
22- python-version : ["3.10", "3.11"]
18+ os : [ ubuntu-latest, macos-latest, windows-latest ]
19+ python-version : [ "3.10", "3.11" ]
2320 env :
2421 OS : ${{ matrix.os }}
2522 PYTHON : ${{ matrix.python-version }}
2623 steps :
27- - uses : actions/checkout@v3
28- - name : Set up Python ${{ matrix.python-version }}
29- uses : actions/setup-python@v4
30- with :
31- python-version : ${{ matrix.python-version }}
32- - name : Set up poetry
33- uses : Gr1N/setup-poetry@v8
34- - name : Install dependencies
35- run : poetry install --with test
36- - name : Test with unittests
37- run : |
38- poetry run coverage run -m unittest
39- poetry run coverage xml
40- - name : Upload coverage reports to Codecov
41- uses : codecov/codecov-action@v3
42- with :
24+ - uses : actions/checkout@v3
25+ - name : Set up Python ${{ matrix.python-version }}
26+ uses : actions/setup-python@v4
27+ with :
28+ python-version : ${{ matrix.python-version }}
29+ - name : Set up poetry
30+ uses : Gr1N/setup-poetry@v8
31+ - name : Install dependencies
32+ run : poetry install --with test
33+ - name : Test with unittests
34+ run : |
35+ poetry run coverage run -m unittest
36+ poetry run coverage xml
37+ - name : Upload coverage reports to Codecov
38+ uses : codecov/codecov-action@v3
39+ with :
4340 token : ${{ secrets.CODECOV_TOKEN }}
4441 flags : unittests
4542 env_vars : OS,PYTHON
0 commit comments