-
Notifications
You must be signed in to change notification settings - Fork 8
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 #9 from CDDLeiden/dev
Create v3.0.0 Release
- Loading branch information
Showing
268 changed files
with
71,401 additions
and
56,363 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
RUNNER_OS=$1 | ||
env=$2 | ||
|
||
# Set up Clustal Omega and MAFFT | ||
export HOME_DIR=$PWD | ||
if [ "$RUNNER_OS" = "macOS" ]; then | ||
wget http://www.clustal.org/omega/clustal-omega-1.2.3-macosx -O clustalo && chmod +x clustalo | ||
brew install mafft && unset MAFFT_BINARIES | ||
echo "$HOME_DIR" >> $GITHUB_PATH # make clustalo available in the next steps | ||
elif [ "$RUNNER_OS" = "Linux" ]; then | ||
wget http://www.clustal.org/omega/clustalo-1.2.4-Ubuntu-x86_64 -O clustalo && chmod +x clustalo | ||
wget https://mafft.cbrc.jp/alignment/software/mafft-7.520-linux.tgz -O mafft.tgz && tar -xzvf mafft.tgz && chmod +x mafft-linux64/mafftdir/bin/mafft | ||
echo "MAFFT_BINARIES=$PWD/mafft-linux64/mafftdir/libexec/" >> $GITHUB_ENV | ||
echo "$HOME_DIR/mafft-linux64/mafftdir/bin/" >> $GITHUB_PATH | ||
echo "$HOME_DIR" >> $GITHUB_PATH # make clustalo available in the next steps | ||
elif [ "$RUNNER_OS" = "Windows" ]; then | ||
choco install clustal-omega mafft | ||
echo "::add-path::$env:ProgramFiles\Clustal Omega" | ||
echo "::add-path::$env:ProgramFiles\MAFFT" | ||
fi | ||
|
||
# Set up Python environment | ||
python -m pip install --upgrade pip | ||
python -m pip install ".[full]" --upgrade --upgrade-strategy eager | ||
python -m pip install pytest | ||
python -m pip install jupyterlab |
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 |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: Multi-OS Complete Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- dev | ||
- main | ||
pull_request: | ||
branches: | ||
- dev | ||
- main | ||
|
||
env: | ||
QSPPRED_TEST_EXTRAS: true | ||
QSPRPRED_VERBOSE_LOGGING: true | ||
|
||
jobs: | ||
tests-all: | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 120 | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-latest ] # FIXME: add macos-latest and windows-latest (removed for now due to limited debugging options) | ||
python-version: [ '3.10' ] | ||
fail-fast: false | ||
defaults: | ||
run: | ||
shell: bash | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Set Up Dependencies | ||
run: | | ||
python -m pip cache purge | ||
source .github/setup.sh ${{ runner.os }} $env | ||
- name: Check Environment Info | ||
run: | | ||
echo "Clustal Omega version: $(clustalo --version)" | ||
echo "MAFFT version: $(mafft --version)" | ||
python -m pip freeze | ||
python -c "print('Python version: ' + '$(python --version)')" | ||
python -c "import platform; print('System info: ', platform.system(), platform.release())" | ||
python -c "import qsprpred; print('QSPRpred version:', qsprpred.__version__)" | ||
- name: Run pytest | ||
run: cd testing/test_pytest && ./run.sh | ||
|
||
- name: Publish Test Report | ||
uses: mikepenz/action-junit-report@v4 | ||
if: success() || failure() # always run even if the previous step fails | ||
with: | ||
report_paths: 'testing/test_pytest/test_report.xml' | ||
|
||
- name: Test CLI | ||
run: cd testing/test_cli && ./run.sh | ||
|
||
- name: Test Consistency | ||
run: cd testing/test_consistency && ./run.sh | ||
|
||
- name: Test Tutorials | ||
run: cd testing/test_tutorial && ./run.sh |
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Build and Deploy Documentation | ||
|
||
on: | ||
push: | ||
branches: | ||
- dev | ||
- main | ||
|
||
env: | ||
CI_COMMIT_AUTHOR: ${{ github.event.head_commit.author.name }} | ||
CI_COMMIT_EMAIL: ${{ github.event.head_commit.author.email }} | ||
|
||
jobs: | ||
docs-build-and-deploy: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
defaults: | ||
run: | ||
shell: bash | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Cache Python Environment | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ env.pythonLocation }} | ||
key: ${{ runner.os }}-${{ env.pythonLocation }}-${{ hashFiles('**/pyproject.toml') }} | ||
|
||
- name: Set Up Dependencies | ||
run: | | ||
source .github/setup.sh ${{ runner.os }} $env | ||
python -m pip install -r docs/requirements.txt | ||
- name: Build and Deploy Documentation | ||
run: | | ||
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}" | ||
git config --global user.email "${{ env.CI_COMMIT_EMAIL }}" | ||
cd docs && ./make.sh && REPO_URL=https://${{ github.actor }}:${{ github.token }}@github.com/${{ github.repository }}.git ./upload.sh |
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 |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: Python3.10 CI with Basic Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' # all branches | ||
- '!dev' # except dev | ||
- '!main' # except main | ||
- '!gh_pages' # except gh_pages | ||
|
||
env: | ||
QSPPRED_TEST_EXTRAS: false | ||
QSPRPRED_VERBOSE_LOGGING: true | ||
|
||
jobs: | ||
tests-basic: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 120 | ||
defaults: | ||
run: | ||
shell: bash | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Cache Python Environment | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ env.pythonLocation }} | ||
key: ${{ runner.os }}-${{ env.pythonLocation }}-${{ hashFiles('**/pyproject.toml') }} | ||
# restore-keys: | | ||
# ${{ runner.os }}-pip- | ||
|
||
- name: Set Up Dependencies | ||
run: | | ||
source .github/setup.sh ${{ runner.os }} $env | ||
- name: Check Environment Info | ||
run: | | ||
echo "Clustal Omega version: $(clustalo --version)" | ||
echo "MAFFT version: $(mafft --version)" | ||
python -m pip freeze | ||
python -c "print('Python version: ' + '$(python --version)')" | ||
python -c "import platform; print('System info: ', platform.system(), platform.release())" | ||
python -c "import qsprpred; print('QSPRpred version:', qsprpred.__version__)" | ||
- name: Run pytest | ||
run: cd testing/test_pytest && ./run.sh | ||
|
||
- name: Publish Test Report | ||
uses: mikepenz/action-junit-report@v4 | ||
if: success() || failure() # always run even if the previous step fails | ||
with: | ||
report_paths: 'testing/test_pytest/test_report.xml' | ||
|
||
- name: Test CLI | ||
run: cd testing/test_cli && ./run.sh | ||
|
||
- name: Test Consistency | ||
run: cd testing/test_consistency && ./run.sh |
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.