38
38
~/.virtualenvs
39
39
~/.cache/pip
40
40
~/.cache/pypoetry
41
- key : lint-${{ hashFiles('**/poetry.lock', '**/tox.ini', '**/pyproject.toml') }}-${{ matrix.python-version }}
41
+ key : lint-${{ hashFiles('**/poetry.lock', '**/tox.ini', '**/pyproject.toml') }}-${{ matrix.python}}
42
42
restore-keys : |
43
- lint-${{ hashFiles('**/poetry.lock', '**/tox.ini', '**/pyproject.toml') }}-${{ matrix.python-version }}
43
+ lint-${{ hashFiles('**/poetry.lock', '**/tox.ini', '**/pyproject.toml') }}-${{ matrix.python}}
44
44
45
45
- name : prepare the environment
46
46
run : |
@@ -51,32 +51,34 @@ jobs:
51
51
run : tox -e linters
52
52
53
53
tests :
54
- runs-on : ubuntu-latest
54
+ name : Test on ${{ matrix.platform }} with Python ${{ matrix.python }}
55
+ runs-on : ${{ matrix.platform }}
55
56
env :
56
57
ACTIONS_ALLOW_UNSECURE_COMMANDS : true
57
58
strategy :
58
59
matrix :
59
60
platform : ['ubuntu-20.04', 'macos-11']
60
- python-version : ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11']
61
+ python : ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11']
61
62
fail-fast : false
62
- name : Test Python ${{matrix.python-version}}
63
63
steps :
64
64
- uses : actions/checkout@v3
65
- - name : install base python
65
+ - name : Setup Python
66
66
uses : actions/setup-python@v4
67
67
with :
68
- python-version : ${{matrix.python-version}}
69
- - name : Cache paths
70
- uses : actions/cache@v3
71
- with :
72
- path : |
73
- .tox
74
- ~/.virtualenvs
75
- ~/.cache/pip
76
- ~/.cache/pypoetry
77
- key : cover-${{ hashFiles('**/poetry.lock', '**/tox.ini', '**/pyproject.toml') }}-${{ matrix.python-version}}
78
- restore-keys : |
79
- cover-${{ hashFiles('**/poetry.lock', '**/tox.ini', '**/pyproject.toml') }}-${{ matrix.python-version}}
68
+ python-version : ${{matrix.python}}
69
+ architecture : x64
70
+
71
+ # - name: Cache paths
72
+ # uses: actions/cache@v3
73
+ # with:
74
+ # path: |
75
+ # .tox
76
+ # ~/.virtualenvs
77
+ # ~/.cache/pip
78
+ # ~/.cache/pypoetry
79
+ # key: cover-${{ hashFiles('**/poetry.lock', '**/tox.ini', '**/pyproject.toml') }}-${{ matrix.python}}
80
+ # restore-keys: |
81
+ # cover-${{ hashFiles('**/poetry.lock', '**/tox.ini', '**/pyproject.toml') }}-${{ matrix.python}}
80
82
81
83
- name : prepare the environment
82
84
run : |
87
89
run : tox -e cover
88
90
- name : Upload coverage
89
91
uses : codecov/codecov-action@v3
90
- if : matrix.python-version == '3.9' && matrix.platform != 'macos-11'
92
+ if : matrix.python == '3.9' && matrix.platform != 'macos-11'
91
93
with :
92
94
fail_ci_if_error : false
93
95
token : ${{ secrets.CODECOVTOKEN }}
0 commit comments