Skip to content

Commit

Permalink
ddsaasdf
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbkoch committed Jul 25, 2024
1 parent 0f703d8 commit a9e010a
Showing 1 changed file with 32 additions and 14 deletions.
46 changes: 32 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -298,40 +298,40 @@ jobs:
matrix:
include:
- name: linux_39_python
python_ver: 3.9
python_ver: "3.9"
image: ubuntu-latest
- name: linux_310_python
python_ver: 3.10
python_ver: "3.10"
image: ubuntu-latest
- name: linux_311_python
python_ver: 3.11
python_ver: "3.11"
image: ubuntu-latest
- name: linux_312_python
python_ver: 3.12
python_ver: "3.12"
image: ubuntu-latest
- name: mac_39_python
python_ver: 3.9
python_ver: "3.9"
image: macos-latest
- name: mac_310_python
python_ver: 3.10
python_ver: "3.10"
image: macos-latest
- name: mac_311_python
python_ver: 3.11
python_ver: "3.11"
image: macos-latest
- name: mac_312_python
python_ver: 3.12
python_ver: "3.12"
image: macos-latest
- name: win_39_python
python_ver: 3.9
python_ver: "3.9"
image: windows-latest
- name: win_310_python
python_ver: 3.10
python_ver: "3.10"
image: windows-latest
- name: win_311_python
python_ver: 3.11
python_ver: "3.11"
image: windows-latest
- name: win_312_python
python_ver: 3.12
python_ver: "3.12"
image: windows-latest
runs-on: ${{ matrix.image }}
steps:
Expand All @@ -349,8 +349,26 @@ jobs:
- name: pytest (non-win)
if: ${{ !startsWith(matrix.image, 'windows') }}
run: |
echo hi
python -m pip install --upgrade pip setuptools wheel
cd "bld/sdist"
install_file=$(echo interpret_core-*.tar.gz)
install_file=${install_file%.tar.gz}
python -m pip install "bld/sdist/$install_file.tar.gz"[debug,notebook,plotly,lime,sensitivity,shap,linear,treeinterpreter,aplr,dash,skoperules,testing]
mkdir -p "tmp/zqmr/t"
tar -xzvf "bld/sdist/$install_file.tar.gz" -C "tmp/zqmr/t" "$install_file/tests"
cd "tmp/zqmr/t"
python -m pytest -vv -n auto --junitxml=junit/test-results.xml --cov=interpret --cov-report=xml --cov-report=html
- name: pytest (win)
if: ${{ startsWith(matrix.image, 'windows') }}
run: |
echo hi
python -m pip install --upgrade pip setuptools wheel
$install_file = Get-ChildItem -Path "bld\sdist" -Filter "interpret_core-*.tar.gz"
$install_file = $install_file[0].BaseName
$env:PATH += ";C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\"
python -m pip install "bld\sdist\$install_file.tar.gz"[debug,notebook,plotly,lime,sensitivity,shap,linear,treeinterpreter,aplr,dash,skoperules,testing]
New-Item -Path "tmp\zqmr" -ItemType Directory -Force
New-Item -Path "tmp\zqmr\t" -ItemType Directory -Force
tar -xzvf "bld\sdist\$install_file.tar.gz" -C "tmp\zqmr\t" "$install_file/tests"
Set-Location -Path "tmp\zqmr\t"
$env:PATH += ";$env:GeckoWebDriver"
python -m pytest -vv -n auto --junitxml=junit/test-results.xml --cov=interpret --cov-report=xml --cov-report=html

0 comments on commit a9e010a

Please sign in to comment.