Skip to content

fixing ci pipeline for python3.9 and python3.13 #563

fixing ci pipeline for python3.9 and python3.13

fixing ci pipeline for python3.9 and python3.13 #563

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
build-Windows:
runs-on: windows-latest
strategy:
matrix:
python-version: ["3.9"]
env:
CONDA_ROOT: ${{github.workspace}}\..\tmp\miniforge
CONDA_ENV_NAME: "testing_env"
CONDA_PREFIX: ${{github.workspace}}\..\tmp\miniforge\envs\testing_env
MINIFORGE_EXEC: ${{github.workspace}}\..\tmp\miniforge.exe
steps:
- uses: actions/checkout@v4
- name: Download Miniforge
run: |
if (-Not (Test-Path -Path $env:CONDA_ROOT)) {
New-Item -ItemType Directory -Path $env:CONDA_ROOT
}
Invoke-WebRequest -Uri https://github.com/conda-forge/miniforge/releases/download/24.11.0-0/Miniforge3-24.11.0-0-Windows-x86_64.exe -OutFile $env:MINIFORGE_EXEC
Start-Process -Wait -FilePath $env:MINIFORGE_EXEC -ArgumentList "/S", "/D=$env:CONDA_ROOT"
- name: Add conda to PATH
run: |
echo "$env:CONDA_ROOT" | Out-File -Append -FilePath $env:GITHUB_PATH
echo "$env:CONDA_ROOT\Scripts" | Out-File -Append -FilePath $env:GITHUB_PATH
- name: Set up Miniforge
run: |
conda create -n $env:CONDA_ENV_NAME python=${{ matrix.python-version }}
activate $env:CONDA_ENV_NAME
conda install -y -c conda-forge -c schrodinger `
catch2=2.13.3 `
cxx-compiler `
collada2gltf `
freetype `
glew `
glm `
libpng `
libxml2 `
libnetcdf `
libffi `
pip
conda info
- name: Get additional sources
run: |
git clone --depth 1 https://github.com/rcsb/mmtf-cpp.git
Copy-Item -Recurse -Path mmtf-cpp/include/mmtf\* -Destination "$env:CONDA_PREFIX\Library\include"
git clone --depth 1 --single-branch --branch cpp_master https://github.com/msgpack/msgpack-c.git
Copy-Item -Recurse -Path msgpack-c/include/msgpack\* -Destination "$env:CONDA_PREFIX\Library\include"
dir mmtf-cpp/include/mmtf
dir msgpack-c/include/msgpack
dir "$env:CONDA_ROOT\envs\$env:CONDA_ENV_NAME\Library\include"
- name: Build PyMOL
run: |
activate $env:CONDA_ENV_NAME
pip install -v --config-settings testing=True .[dev]
- name: Test
run: |
pymol -ckqy testing\testing.py --run all