From 3dbcae3c4ccd9fcb05e2c06223d55b5899a89b92 Mon Sep 17 00:00:00 2001 From: stephanbreimann Date: Thu, 27 Jun 2024 19:52:52 +0200 Subject: [PATCH] Update cd-hit and mmseq installation17 --- .github/workflows/main.yml | 46 +++++++++++++++----------------------- 1 file changed, 18 insertions(+), 28 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9adcf8b7..56473829 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -62,23 +62,18 @@ jobs: sudo apt-get update sudo apt-get install -y cd-hit mmseqs2 - - name: Install cd-hit (Windows) - if: runner.os == 'Windows' - shell: pwsh + - name: Set up WSL and compile cd-hit + shell: bash run: | - curl -L -o cd-hit.tar.gz https://github.com/weizhongli/cdhit/releases/download/V4.8.1/cd-hit-v4.8.1-2019-0228.tar.gz - $cdhitDir = "$Env:USERPROFILE\cdhit" - New-Item -ItemType Directory -Force -Path $cdhitDir - tar -xzf cd-hit.tar.gz -C $cdhitDir - $cdhitBinPath = "$cdhitDir\cd-hit-v4.8.1-2019-0228\bin" - Write-Host "cd-hit binary path: $cdhitBinPath" - echo "$cdhitBinPath" | Out-File -Append -FilePath $Env:GITHUB_PATH - [Environment]::SetEnvironmentVariable("PATH", "$Env:PATH;$cdhitBinPath", "Process") - Write-Host "Contents of cd-hit bin directory:" - Get-ChildItem $cdhitBinPath + sudo apt update + sudo apt install -y build-essential zlib1g-dev + wget https://github.com/weizhongli/cdhit/releases/download/V4.8.1/cd-hit-v4.8.1-2019-0228.tar.gz + tar -xzf cd-hit-v4.8.1-2019-0228.tar.gz + cd cd-hit-v4.8.1-2019-0228 + make + sudo cp cd-hit /usr/local/bin/ - name: Install mmseqs2 (Windows) - if: runner.os == 'Windows' shell: pwsh run: | curl -L -o mmseqs2.zip https://mmseqs.com/latest/mmseqs-win64.zip @@ -92,23 +87,17 @@ jobs: Write-Host "Contents of mmseqs2 directory:" Get-ChildItem $mmseqsBinPath - - name: Verify cd-hit installation - if: runner.os == 'Windows' - shell: pwsh + - name: Verify cd-hit installation (WSL) + shell: bash run: | - $cdhitBinPath = "$Env:USERPROFILE\cdhit\cd-hit-v4.8.1-2019-0228\bin" - $env:Path += ";$cdhitBinPath" - Write-Host "Updated PATH: $env:Path" - Write-Host "Checking cd-hit binary in PATH:" - if (-Not (Get-Command cd-hit -ErrorAction SilentlyContinue)) { - Write-Error "cd-hit not found in PATH" - } else { - Write-Host "cd-hit found in PATH" - cd-hit --version - } + if ! command -v cd-hit &> /dev/null + then + echo "cd-hit could not be found" + exit 1 + fi + cd-hit --version - name: Verify mmseqs2 installation - if: runner.os == 'Windows' shell: pwsh run: | $mmseqsBinPath = "$Env:USERPROFILE\mmseqs\mmseqs-win64" @@ -122,6 +111,7 @@ jobs: mmseqs --version } + - name: Run Tests run: pytest tests env: