3030 with :
3131 python-version : ${{env.basepython}}
3232
33- - name : Cache paths
34- uses : actions/cache@v2
35- with :
36- path : |
37- .tox
38- ~/.virtualenvs
39- ~/.cache/pip
40- ~/.cache/pypoetry
41- key : lint-${{ hashFiles('**/poetry.lock', '**/tox.ini', '**/pyproject.toml') }}-${{ matrix.python-version}}
42- restore-keys : |
43- lint-${{ hashFiles('**/poetry.lock', '**/tox.ini', '**/pyproject.toml') }}-${{ matrix.python-version}}
44-
4533 - name : prepare the environment
4634 run : |
4735 pip install -U setuptools pip poetry tox-docker tox-poetry
@@ -51,40 +39,33 @@ jobs:
5139 run : tox -e linters
5240
5341 tests :
54- runs-on : ubuntu-latest
42+ name : Test on ${{ matrix.platform }} with Python ${{ matrix.python }}
43+ runs-on : ${{ matrix.platform }}
5544 env :
5645 ACTIONS_ALLOW_UNSECURE_COMMANDS : true
5746 strategy :
5847 matrix :
59- python-version : ['3.6', '3.7', '3.8', '3.9', '3.10']
60- name : Test Python ${{matrix.python-version}}
48+ platform : ['ubuntu-20.04']
49+ python : ['3.7', '3.8', '3.9', '3.10', '3.11']
50+ fail-fast : false
6151 steps :
6252 - uses : actions/checkout@v3
63- - name : install base python
53+ - name : Setup Python
6454 uses : actions/setup-python@v4
6555 with :
66- python-version : ${{matrix.python-version}}
67- - name : Cache paths
68- uses : actions/cache@v2
69- with :
70- path : |
71- .tox
72- ~/.virtualenvs
73- ~/.cache/pip
74- ~/.cache/pypoetry
75- key : cover-${{ hashFiles('**/poetry.lock', '**/tox.ini', '**/pyproject.toml') }}-${{ matrix.python-version}}
76- restore-keys : |
77- cover-${{ hashFiles('**/poetry.lock', '**/tox.ini', '**/pyproject.toml') }}-${{ matrix.python-version}}
56+ python-version : ${{matrix.python}}
57+ architecture : x64
7858
79- - name : prepare the environment
59+ - name : Prepare environment
8060 run : |
8161 pip install -U setuptools pip poetry tox-docker tox-poetry
8262 poetry config virtualenvs.create false
8363 poetry install
84- - name : run tests
64+ - name : Run tests
8565 run : tox -e cover
8666 - name : Upload coverage
87- uses : codecov/codecov-action@v2
67+ uses : codecov/codecov-action@v3
68+ if : matrix.python == '3.9' && matrix.platform != 'macos-11'
8869 with :
8970 fail_ci_if_error : false
90- token : ${{ secrets.CODECOVTOKEN }}
71+ token : ${{ secrets.CODECOVTOKEN }}
0 commit comments