Action to install vcomp140.dll on Windows

Hi there!

I am using Github Actions to create a testing workflow, in which Python Anaconda and some dependencies need to be installed on a Windows system. Some of these dependencies require a shared library for running: vcomp140.dll or some alternative like libgomp-1.dll.

Is there a way to install vcomp140.dll from a script in Windows? I have tried with a chocolatey action, and although the install seems to work alright, I still get the same missing library issue. Maybe a machine reboot is required, but as far as I know this is not possible in Github runners.

Here is the full YAML for the Github Action I’m creating, in case it helps. Although I run the tests under several OS, the only one with issues is Windows.

name: Test the environment under different operative systems and python configurations

on: [push]

    runs-on: ${{ matrix.os }}
      max-parallel: 5
        os: [ubuntu-latest, macos-latest, windows-latest]
        python-version: [3.6]

    name: ${{ matrix.os }} python ${{ matrix.python-version }} test
    - uses: actions/checkout@v2
    - name: Check Windows architecture
      if: ${{ matrix.os == 'windows-latest'}} 
      run: |
        wmic os get osarchitecture
    - name: Install VS C++ Distributables
      uses: crazy-max/ghaction-chocolatey@v1.4.0
      if: ${{ matrix.os == 'windows-latest'}} 
        args: install vcredist140
    - name: Setup conda
      uses: s-weigand/setup-conda@v1
        python-version: ${{ matrix.python-version }}
    - name: Install dependencies
      run: |
        conda env update --file environment.yml --name base
    - name: Test with pytest
      run: |
        conda install pytest && conda info && conda env list && conda list && which python && which pytest && pytest

From reading other responses on this topic on the Internet, it seems you need to install a few things, like vc++2015 runtime library or vs2015 c++ development toolkit. Another answer I found is with regards to installing this: Download Microsoft Visual C++ 2015 Redistributable Update 3 RC from Official Microsoft Download Center on the Windows machine.