@@ -13,36 +13,19 @@ jobs:
1313 name : Run unit tests with codecov upload
1414 runs-on : ${{ matrix.os }}
1515 env :
16- USING_COVERAGE : ' 3.7 '
16+ USING_COVERAGE : ' 3.8 '
1717 strategy :
1818 matrix :
1919 os : [ubuntu-latest, macos-latest, windows-latest]
20- python-version : [3.7 , 3.8, 3.9 , "3.10 "]
20+ python-version : [3.8 , 3.9, "3.10" , "3.11 "]
2121 steps :
2222 - uses : actions/checkout@master
2323
2424 - name : Setup Python ${{ matrix.python-version }}
25- uses : actions/setup-python@v2
25+ uses : actions/setup-python@master
2626 with :
2727 python-version : ${{ matrix.python-version }}
2828
29- # https://github.com/actions/virtual-environments/issues/294
30- - name : Configure path to rc.exe for Python 3.5
31- run : |
32- function Invoke-VSDevEnvironment {
33- $vswhere = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe"
34- $installationPath = & $vswhere -prerelease -legacy -latest -property installationPath
35- $Command = Join-Path $installationPath "Common7\Tools\vsdevcmd.bat"
36- & "${env:COMSPEC}" /s /c "`"$Command`" -no_logo && set" | Foreach-Object {
37- if ($_ -match '^([^=]+)=(.*)') {
38- [System.Environment]::SetEnvironmentVariable($matches[1], $matches[2])
39- }
40- }
41- }
42- Invoke-VSDevEnvironment
43- Get-Command rc.exe | Format-Table -AutoSize
44- if : matrix.os == 'windows-latest' && matrix.python-version == '3.5'
45-
4629 - name : Install dependencies
4730 run : |
4831 pip3 install --upgrade pip
5942 pytest --cov=mkdocs_enumerate_headings_plugin --cov-report=xml -vvv
6043 - name : Upload coverage to Codecov
6144 if : " contains(env.USING_COVERAGE, matrix.python-version)"
62- uses : codecov/codecov-action@v1
45+ uses : codecov/codecov-action@master
6346 with :
6447 token : ${{ secrets.CODECOV_TOKEN }}
6548 file : ./coverage.xml
0 commit comments