Skip to content

Commit

Permalink
💚 Update pytest command and disk size calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
lmtani committed Dec 18, 2023
1 parent 7a0df80 commit a9aac45
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ jobs:
run: pip install -r tests/requirements.txt

- name: Run test ${{ matrix.tag }}
run: pytest --tag ${{ matrix.tag }} --basetemp /tmp/ci tests/tasks
run: pytest --git-aware --tag ${{ matrix.tag }} --basetemp temp-dir tests/tasks

- uses: actions/upload-artifact@v4
with:
name: miniwdl-command
path: /tmp/ci/*/_LAST/command
path: temp-dir/**/command

release:
needs: [test]
Expand Down
3 changes: 3 additions & 0 deletions tasks/clair3/haploid.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ task Clair3Haploid {
Boolean stub = false
}

Int disk_size = ceil((size(alignment, "GB") + size(reference, "GB") + size(model_tar, "GB")) * 2)

command <<<
set -e

Expand Down Expand Up @@ -53,6 +55,7 @@ task Clair3Haploid {
docker: "docker.io/hkubal/clair3:v1.0.4"
cpu: threads
memory: "8G" # TODO: check if it's enough
disks: "local-disk " + disk_size + " HDD"
}

output {
Expand Down

0 comments on commit a9aac45

Please sign in to comment.