Skip to content

Commit 396f0ef

Browse files
authored
update github actions
1 parent 944a5a0 commit 396f0ef

File tree

3 files changed

+7
-24
lines changed

3 files changed

+7
-24
lines changed

.github/workflows/pythonpublish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ jobs:
88
deploy:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v1
11+
- uses: actions/checkout@master
1212
- name: Set up Python
13-
uses: actions/setup-python@v2
13+
uses: actions/setup-python@master
1414
with:
1515
python-version: '3.x'
1616
- name: Install dependencies

.github/workflows/unittests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
strategy:
88
matrix:
99
os: [ubuntu-latest, macos-latest, windows-latest]
10-
python-version: [3.7, 3.8, 3.9, "3.10"]
10+
python-version: [3.8, 3.9, "3.10", "3.11"]
1111
steps:
1212
- uses: actions/checkout@master
1313
- name: Setup Python

.github/workflows/unittests_codecov.yml

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -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
@@ -59,7 +42,7 @@ jobs:
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

Comments
 (0)