-
Notifications
You must be signed in to change notification settings - Fork 312
fixing ci pipeline for python3.9 and python3.13 #435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 7 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
5db7314
adding libffi to windows ci pipeline
ye11owSub 2147ef1
bump pillow version
ye11owSub 2fe1c16
refactoring testLoadPWG
ye11owSub 1306de6
removing usage of cgi lib
ye11owSub df8de68
moving all pyton dependencies from github/workflow to pyproject.toml
ye11owSub 5b83fe9
adding strategy for python versions
ye11owSub 3ed37a1
fixing type annotation for python3.9
ye11owSub 742f7c0
fixes after review
ye11owSub File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,28 +7,30 @@ jobs: | |
|
||
runs-on: ubuntu-22.04 | ||
|
||
strategy: | ||
matrix: | ||
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install system dependencies | ||
run: > | ||
sudo apt-get update; | ||
sudo apt-get --no-install-recommends install | ||
catch2 | ||
cmake | ||
libfreetype6-dev | ||
libglew-dev | ||
libglm-dev | ||
libmsgpack-dev | ||
libnetcdf-dev | ||
libpng-dev | ||
libxml2-dev | ||
python-is-python3 | ||
python3-biopython | ||
python3-dev | ||
python3-setuptools | ||
python3-numpy | ||
python3-pip | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get --no-install-recommends install \ | ||
catch2 \ | ||
libfreetype6-dev \ | ||
libglew-dev \ | ||
libglm-dev \ | ||
libmsgpack-dev \ | ||
libnetcdf-dev \ | ||
libpng-dev \ | ||
libxml2-dev | ||
|
||
- name: Install collada2gltf | ||
run: | | ||
|
@@ -38,7 +40,7 @@ jobs: | |
- name: Get additional sources | ||
run: | | ||
git clone --depth 1 https://github.com/rcsb/mmtf-cpp.git | ||
cp -R mmtf-cpp/include/mmtf* include/ | ||
cp -R mmtf-cpp/include/* include/ | ||
|
||
- name: Build | ||
run: | | ||
|
@@ -51,87 +53,123 @@ jobs: | |
run: | | ||
pymol -ckqy testing/testing.py --run all | ||
|
||
|
||
build-Windows: | ||
|
||
runs-on: windows-latest | ||
|
||
strategy: | ||
matrix: | ||
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | ||
|
||
env: | ||
CONDA_ROOT: ${{github.workspace}}\..\tmp\miniforge | ||
MINIFORGE_EXEC: ${{github.workspace}}\..\tmp\miniforge.exe | ||
CONDA_ENV_NAME: "testing_env" | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
- name: Download Miniforge | ||
shell: cmd | ||
run: |- | ||
if not exist %CONDA_ROOT% mkdir %CONDA_ROOT% | ||
curl -L -o %MINIFORGE_EXEC% https://github.com/conda-forge/miniforge/releases/download/24.11.0-0/Miniforge3-24.11.0-0-Windows-x86_64.exe | ||
start /wait %MINIFORGE_EXEC% /S /D=%CONDA_ROOT% | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Miniforge | ||
shell: cmd | ||
run: |- | ||
CALL %CONDA_ROOT%\\Scripts\\activate.bat | ||
conda install -y -c conda-forge -c schrodinger python cmake libpng freetype pyside6 glew libxml2 catch2=2.13.3 glm libnetcdf collada2gltf biopython msgpack-python pip python-build | ||
- name: Install Miniforge | ||
run: | | ||
choco install miniforge3 | ||
|
||
- name: Conda info | ||
shell: cmd | ||
run: |- | ||
CALL %CONDA_ROOT%\\Scripts\\activate.bat | ||
conda info | ||
- name: Add conda to PATH | ||
run: | | ||
echo "$env:CONDA" | Out-File -Append -FilePath $env:GITHUB_PATH | ||
echo "$env:CONDA\Scripts" | Out-File -Append -FilePath $env:GITHUB_PATH | ||
|
||
- name: Set up Miniforge | ||
run: | | ||
conda init powershell | ||
conda create --name $env:CONDA_ENV_NAME -c conda-forge -c schrodinger ` | ||
python=${{ matrix.python-version }} ` | ||
pip ` | ||
catch2=2.13.3 ` | ||
cxx-compiler ` | ||
collada2gltf ` | ||
freetype ` | ||
glew ` | ||
glm ` | ||
libpng ` | ||
libxml2 ` | ||
libnetcdf ` | ||
libffi | ||
ye11owSub marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
- name: Get additional sources | ||
shell: cmd | ||
run: | | ||
conda deactivate | ||
ye11owSub marked this conversation as resolved.
Show resolved
Hide resolved
|
||
conda activate $env:CONDA_ENV_NAME | ||
|
||
git clone --depth 1 https://github.com/rcsb/mmtf-cpp.git | ||
cp -R mmtf-cpp/include/mmtf* %CONDA_ROOT%/Library/include/ | ||
Copy-Item -Recurse -Path mmtf-cpp/include\* -Destination "$env:CONDA_PREFIX\Library\include" | ||
git clone --depth 1 --single-branch --branch cpp_master https://github.com/msgpack/msgpack-c.git | ||
cp -R msgpack-c/include/msgpack* %CONDA_ROOT%/Library/include/ | ||
Copy-Item -Recurse -Path msgpack-c/include\* -Destination "$env:CONDA_PREFIX\Library\include" | ||
dir $env:CONDA_PREFIX\Library\include | ||
|
||
- name: Build PyMOL | ||
shell: cmd | ||
run: | | ||
CALL %CONDA_ROOT%\\Scripts\\activate.bat | ||
conda activate $env:CONDA_ENV_NAME | ||
pip install -v --config-settings testing=True .[dev] | ||
|
||
- name: Test | ||
shell: cmd | ||
run: | | ||
CALL %CONDA_ROOT%\\Scripts\\activate.bat | ||
pymol -ckqy testing\\testing.py --run all | ||
conda activate $env:CONDA_ENV_NAME | ||
pymol -ckqy testing\testing.py --run all | ||
|
||
|
||
build-MacOS: | ||
|
||
runs-on: macos-latest | ||
|
||
strategy: | ||
matrix: | ||
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | ||
|
||
env: | ||
CONDA_ROOT: "/tmp/miniforge" | ||
CONDA_ENV_NAME: "testing_env" | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
- name: Set up Miniforge and Build | ||
run: |- | ||
|
||
- name: Download Miniforge | ||
run: | | ||
curl -L -o $CONDA_ROOT.sh https://github.com/conda-forge/miniforge/releases/download/24.11.0-0/Miniforge3-MacOSX-x86_64.sh | ||
bash $CONDA_ROOT.sh -b -p $CONDA_ROOT | ||
export PATH="$CONDA_ROOT/bin:$PATH" | ||
conda config --set quiet yes | ||
conda install -y -c conda-forge -c schrodinger python cmake libpng freetype pyside6 glew libxml2 catch2=2.13.3 glm libnetcdf collada2gltf biopython msgpack-python pip python-build | ||
conda info | ||
|
||
- name: Add conda to PATH | ||
run: | | ||
echo "${CONDA_ROOT}/bin" >> "$GITHUB_PATH" | ||
|
||
- name: Set up Miniforge | ||
run: | | ||
conda create --name $CONDA_ENV_NAME -c conda-forge -c schrodinger \ | ||
python=${{ matrix.python-version }} \ | ||
pip \ | ||
catch2=2.13.3 \ | ||
collada2gltf \ | ||
freetype \ | ||
glew \ | ||
glm \ | ||
libpng \ | ||
libxml2 \ | ||
libnetcdf | ||
|
||
- name: Get additional sources | ||
run: | | ||
source activate $CONDA_ENV_NAME | ||
git clone --depth 1 https://github.com/rcsb/mmtf-cpp.git | ||
cp -R mmtf-cpp/include/mmtf* ${CONDA_ROOT}/include/ | ||
cp -R mmtf-cpp/include/* ${CONDA_PREFIX}/include/ | ||
git clone --depth 1 --single-branch --branch cpp_master https://github.com/msgpack/msgpack-c.git | ||
cp -R msgpack-c/include/msgpack* ${CONDA_ROOT}/include/ | ||
cp -R msgpack-c/include/* ${CONDA_PREFIX}/include/ | ||
|
||
- name: Build PyMOL | ||
run: |- | ||
run: | | ||
source activate $CONDA_ENV_NAME | ||
export MACOSX_DEPLOYMENT_TARGET=12.0 | ||
export PATH="$CONDA_ROOT/bin:$PATH" | ||
pip install -v --config-settings testing=True '.[dev]' | ||
|
||
- name: Test | ||
run: |- | ||
export PATH="$CONDA_ROOT/bin:$PATH" | ||
run: | | ||
source activate $CONDA_ENV_NAME | ||
pymol -ckqy testing/testing.py --run all | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably correct, but what caused this to be needed now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was sure that the windows image doesn't have a gcc compiler.
I removed this line, everything worked out correctly