-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #749 from I2PC/release-3.23.11
Release 3.23.11 (Nereus)
- Loading branch information
Showing
63 changed files
with
994 additions
and
1,455 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1,20 +1,90 @@ | ||
name: Build | ||
# Name of the GitHub Action | ||
name: Build scipion-em-xmipp on Pull Request | ||
|
||
# Specify when the Action should be triggered: when a pull request is opened against the 'devel' or 'master' branch | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
branches: [devel, master] | ||
|
||
# Define the job that should be run | ||
jobs: | ||
sonarcloud: | ||
name: SonarCloud | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | ||
- name: SonarCloud Scan | ||
uses: SonarSource/sonarcloud-github-action@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
build: | ||
# Specify the machine to run the job on | ||
runs-on: ubuntu-22.04 | ||
|
||
# Define the steps to be taken in the job | ||
steps: | ||
# Installing dependencies | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libfftw3-dev libopenmpi-dev openmpi-bin libhdf5-dev python3-numpy python3-dev libtiff5-dev unzip libsqlite3-dev default-jdk git cmake libopencv-dev libopenmpi-dev make cmake | ||
# Installing CUDA | ||
- name: Install CUDA | ||
uses: Jimver/cuda-toolkit@v0.2.11 | ||
id: cuda-toolkit | ||
with: | ||
cuda: '11.8.0' | ||
method: network | ||
sub-packages: '["nvcc", "toolkit"]' | ||
|
||
# Installing Miniconda | ||
- name: Install Miniconda | ||
working-directory: ${{ github.workspace }}/../ | ||
run: | | ||
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh | ||
bash Miniconda3-latest-Linux-x86_64.sh -b -p ${{ github.workspace }}/../miniconda/ | ||
source ./miniconda/etc/profile.d/conda.sh | ||
conda update -n base -c defaults conda -y | ||
# Installing Scipion | ||
- name: Install Scipion | ||
working-directory: ${{ github.workspace }}/../ | ||
run: | | ||
eval "$(${{ github.workspace }}/../miniconda/bin/conda shell.bash hook)" | ||
pip3 install --user scipion-installer | ||
python3 -m scipioninstaller -conda -noXmipp -noAsk scipion | ||
# Installing Xmipp's Python dependencies in scipion conda enviroment | ||
- name: Install scons in scipion enviroment | ||
run: | | ||
eval "$(${{ github.workspace }}/../miniconda/bin/conda shell.bash hook)" | ||
conda activate scipion3 | ||
pip install scons | ||
# Cloning Xmipp | ||
- name: Cloning Xmipp | ||
working-directory: ${{ github.workspace }}/../ | ||
run: git clone https://github.com/I2PC/xmipp.git | ||
|
||
# Checkout Xmipp to Pull Request branch if exists, by default stays in devel | ||
- name: Conditionally checkout Xmipp to ${{ github.head_ref }} | ||
working-directory: ${{ github.workspace }}/../xmipp | ||
env: | ||
BRANCH_NAME: ${{ github.head_ref }} | ||
run: | | ||
if [ $(git ls-remote --heads https://github.com/I2PC/xmipp.git $BRANCH_NAME | wc -l) -eq 1 ]; then | ||
git checkout $BRANCH_NAME | ||
fi | ||
# Installing Xmipp | ||
- name: Compile Xmipp and show log | ||
working-directory: ${{ github.workspace }}/../xmipp | ||
env: | ||
BUILD_TESTS: True | ||
run: | | ||
../scipion/scipion3 run ./xmipp || (cat compileLOG.txt && false) | ||
cat compileLOG.txt | ||
#TODO: Remove last "cat compileLOG.txt" once there is a new Scipion release | ||
|
||
# Check out the repository in the pull request | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
|
||
# Install plugin from the pull request using the Scipion3 installp command | ||
- name: Install plugin from pull request | ||
working-directory: ${{ github.workspace }} | ||
run: ../scipion/scipion3 installp -p . --devel --noBin |
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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 |
---|---|---|
@@ -1,13 +1,5 @@ | ||
sonar.projectKey=ScipionEmXmipp | ||
sonar.organization=i2pc | ||
|
||
# This is the name and version displayed in the SonarCloud UI. | ||
sonar.projectName=Scipion-em-Xmipp | ||
sonar.projectVersion=3.0 | ||
sonar.python.version=3 | ||
|
||
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. | ||
sonar.sources=. | ||
sonar.exlusions=**/legacy/** | ||
|
||
# Encoding of the source code. Default is default system encoding | ||
#sonar.sourceEncoding=UTF-8 |
This file contains 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
This file contains 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
This file contains 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.