Skip to content

Commit

Permalink
remove conflicting windows compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
stefdoerr committed Jan 22, 2025
1 parent 87929e6 commit 91020b5
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest", "macos-13", "windows-2019"]
os: ["ubuntu-latest", "macos-latest", "macos-13", "windows-2022"]
python-version: ["3.10"] #, "3.9", "3.11", "3.12"]

defaults: # Needed for conda
Expand All @@ -33,6 +33,13 @@ jobs:
python-version: ${{ matrix.python-version }}
channels: conda-forge,defaults

- name: Remove conflicting Visual Studio compiler (Windows only)
if: runner.os == 'Windows'
shell: cmd
run: |
del "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe"
del "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\link.exe"
- name: Install OS-specific conda dependencies
run: |
if [[ "${{ runner.os }}" == "Linux" ]]; then
Expand All @@ -46,14 +53,14 @@ jobs:
- name: Install testing packages
run: conda install -y -c conda-forge flake8 pytest psutil

- name: List the conda environment
run: conda list

- name: Build and install the package
run: pip -vv install .
env:
CPU_ONLY: 1

- name: List the conda environment
run: conda list

- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
Expand Down

0 comments on commit 91020b5

Please sign in to comment.