diff --git a/.github/workflows/pythonpublish.yml b/.github/workflows/pythonpublish.yml index b0252d7..6f0615c 100644 --- a/.github/workflows/pythonpublish.yml +++ b/.github/workflows/pythonpublish.yml @@ -8,9 +8,9 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@master - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@master with: python-version: '3.x' - name: Install dependencies diff --git a/.github/workflows/unittests.yml b/.github/workflows/unittests.yml index a41bbd9..08c1a86 100644 --- a/.github/workflows/unittests.yml +++ b/.github/workflows/unittests.yml @@ -7,7 +7,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: [3.7, 3.8, 3.9, "3.10"] + python-version: [3.8, 3.9, "3.10", "3.11"] steps: - uses: actions/checkout@master - name: Setup Python diff --git a/.github/workflows/unittests_codecov.yml b/.github/workflows/unittests_codecov.yml index 74b0c5b..ceb4194 100644 --- a/.github/workflows/unittests_codecov.yml +++ b/.github/workflows/unittests_codecov.yml @@ -13,36 +13,19 @@ jobs: name: Run unit tests with codecov upload runs-on: ${{ matrix.os }} env: - USING_COVERAGE: '3.7' + USING_COVERAGE: '3.8' strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: [3.7, 3.8, 3.9, "3.10"] + python-version: [3.8, 3.9, "3.10", "3.11"] steps: - uses: actions/checkout@master - name: Setup Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@master with: python-version: ${{ matrix.python-version }} - # https://github.com/actions/virtual-environments/issues/294 - - name: Configure path to rc.exe for Python 3.5 - run: | - function Invoke-VSDevEnvironment { - $vswhere = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" - $installationPath = & $vswhere -prerelease -legacy -latest -property installationPath - $Command = Join-Path $installationPath "Common7\Tools\vsdevcmd.bat" - & "${env:COMSPEC}" /s /c "`"$Command`" -no_logo && set" | Foreach-Object { - if ($_ -match '^([^=]+)=(.*)') { - [System.Environment]::SetEnvironmentVariable($matches[1], $matches[2]) - } - } - } - Invoke-VSDevEnvironment - Get-Command rc.exe | Format-Table -AutoSize - if: matrix.os == 'windows-latest' && matrix.python-version == '3.5' - - name: Install dependencies run: | pip3 install --upgrade pip @@ -59,7 +42,7 @@ jobs: pytest --cov=mkdocs_enumerate_headings_plugin --cov-report=xml -vvv - name: Upload coverage to Codecov if: "contains(env.USING_COVERAGE, matrix.python-version)" - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@master with: token: ${{ secrets.CODECOV_TOKEN }} file: ./coverage.xml