diff options
Diffstat (limited to '.github/workflows/build_tests.yml')
-rw-r--r-- | .github/workflows/build_tests.yml | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/.github/workflows/build_tests.yml b/.github/workflows/build_tests.yml index ee5a435..3c99da8 100644 --- a/.github/workflows/build_tests.yml +++ b/.github/workflows/build_tests.yml @@ -22,7 +22,7 @@ jobs: strategy: max-parallel: 4 matrix: - python-version: [ "3.6", "3.7", "3.8", "3.9"] + python-version: ["3.7", "3.8", "3.9"] steps: - uses: actions/checkout@v1 @@ -128,12 +128,29 @@ jobs: uses: actions/setup-python@v1 with: python-version: ${{ matrix.python-version }} + - name: RC.exe + 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 + - name: Update pip + run : | + python -m pip install --upgrade pip setuptools + python -m pip install cython - name: Install POT run: | python -m pip install -e . - name: Install dependencies run: | - python -m pip install --upgrade pip python -m pip install -r .github/requirements_test_windows.txt python -m pip install torch==1.8.1+cpu -f https://download.pytorch.org/whl/torch_stable.html python -m pip install pytest "pytest-cov<2.6" |