Skip to content

Commit

Permalink
Update cd-hit and mmseq installation20
Browse files Browse the repository at this point in the history
  • Loading branch information
breimanntools committed Jun 27, 2024
1 parent b7f9cfc commit 1bdd441
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/codeql_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ name: CodeQL

on:
push:
branches: [ master ]
branches:
- master
pull_request:
branches: [ master ]
branches:
- master
schedule:
- cron: '0 0 * * 0'

Expand Down
16 changes: 6 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
sudo apt-get install -y mmseqs2
- name: Install cd-hit (Windows)
if: runner.os == 'Windows'
if: matrix.os == 'windows-latest'
shell: pwsh
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
Expand All @@ -60,13 +60,12 @@ jobs:
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")
[Environment]::SetEnvironmentVariable("PATH", "$Env:PATH;$cdhitBinPath", [System.EnvironmentVariableTarget]::Machine)
Write-Host "Contents of cd-hit bin directory:"
Get-ChildItem $cdhitBinPath
- name: Install mmseqs2 (Windows)
if: runner.os == 'Windows'
if: matrix.os == 'windows-latest'
shell: pwsh
run: |
curl -L -o mmseqs2.zip https://mmseqs.com/latest/mmseqs-win64.zip
Expand All @@ -75,13 +74,12 @@ jobs:
Expand-Archive -Path mmseqs2.zip -DestinationPath $mmseqsDir
$mmseqsBinPath = "$mmseqsDir\mmseqs-win64"
Write-Host "mmseqs2 binary path: $mmseqsBinPath"
echo "$mmseqsBinPath" | Out-File -Append -FilePath $Env:GITHUB_PATH
[Environment]::SetEnvironmentVariable("PATH", "$Env:PATH;$mmseqsBinPath", "Process")
[Environment]::SetEnvironmentVariable("PATH", "$Env:PATH;$mmseqsBinPath", [System.EnvironmentVariableTarget]::Machine)
Write-Host "Contents of mmseqs2 directory:"
Get-ChildItem $mmseqsBinPath
- name: Verify mmseqs2 installation
if: runner.os == 'Windows'
if: matrix.os == 'windows-latest'
shell: pwsh
run: |
$mmseqsBinPath = "$Env:USERPROFILE\mmseqs\mmseqs-win64"
Expand All @@ -93,10 +91,9 @@ jobs:
} else {
Write-Host "mmseqs found in PATH"
mmseqs --version
}
- name: Verify cd-hit installation
if: runner.os == 'Windows'
if: matrix.os == 'windows-latest'
shell: pwsh
run: |
$cdhitBinPath = "$Env:USERPROFILE\cdhit\cd-hit-v4.8.1-2019-0228\bin"
Expand All @@ -108,7 +105,6 @@ jobs:
} else {
Write-Host "cd-hit found in PATH"
cd-hit --version
}
- name: Run Tests
run: pytest tests
Expand Down

0 comments on commit 1bdd441

Please sign in to comment.