Skip to content

Commit

Permalink
Experiment with MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
oerc0122 committed Nov 7, 2024
1 parent a3c30a4 commit 2ba84f9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ jobs:
if: startsWith(matrix.os, 'macos')
run: |
brew install llvm
echo "CC=/opt/homebrew/opt/llvm/bin/clang" >> $GITHUB_ENV
- name: Setup MSVC on Windows
if: startsWith(matrix.os, 'windows')
uses: bus1/cabuild/action/msdevshell@v1
with:
architecture: x64
- name: Update pip and install dependencies
shell: bash -l {0}
run: |
Expand Down
14 changes: 7 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ deps =
numpy
-r{toxinidir}/tests_and_analysis/tox_requirements.txt
commands_pre =
python -m pip install -vvv \
python -m pip install -vv \
--upgrade \
--upgrade-strategy eager \
'{toxinidir}[matplotlib,phonopy_reader,brille]'
Expand All @@ -33,7 +33,7 @@ commands =
install_command = {[testenv:py310]install_command}
deps = {[testenv:py310]deps}
commands_pre =
python -m pip install -vvv \
python -m pip install -vv \
--upgrade \
--upgrade-strategy eager \
'{toxinidir}'
Expand All @@ -44,7 +44,7 @@ commands = {[testenv]test_command} --cov -m "not (phonopy_reader or matplotlib o
install_command = {[testenv:py310]install_command}
deps = {[testenv:py310]deps}
commands_pre =
python -m pip install -vvv \
python -m pip install -vv \
--upgrade \
--upgrade-strategy eager \
'{toxinidir}[matplotlib]'
Expand All @@ -55,7 +55,7 @@ commands = {[testenv]test_command} --cov -m "matplotlib and not multiple_extras"
install_command = {[testenv:py310]install_command}
deps = {[testenv:py310]deps}
commands_pre =
python -m pip install -vvv \
python -m pip install -vv \
--upgrade \
--upgrade-strategy eager \
'{toxinidir}[phonopy_reader]'
Expand All @@ -66,7 +66,7 @@ commands = {[testenv]test_command} --cov -m "phonopy_reader and not multiple_ext
install_command = {[testenv:py310]install_command}
deps = {[testenv:py310]deps}
commands_pre =
python -m pip install -vvv \
python -m pip install -vv \
--upgrade \
--upgrade-strategy eager \
'{toxinidir}[brille]'
Expand All @@ -77,7 +77,7 @@ commands = {[testenv]test_command} --cov -m "brille and not multiple_extras"
install_command = {[testenv:py310]install_command}
deps = {[testenv:py310]deps}
commands_pre =
python -m pip install -vvv \
python -m pip install -vv \
--upgrade \
--upgrade-strategy eager \
'{toxinidir}[phonopy_reader,matplotlib,brille]'
Expand All @@ -100,5 +100,5 @@ commands_pre =
-r{toxinidir}/tests_and_analysis/tox_requirements.txt
# Force rebuild of euphonic extension to avoid Numpy clash
rm -rf {toxinidir}/build
python -m pip install -vvv '{toxinidir}[matplotlib,phonopy_reader,brille]'
python -m pip install -vv '{toxinidir}[matplotlib,phonopy_reader,brille]'
commands = {[testenv]test_command}

0 comments on commit 2ba84f9

Please sign in to comment.