From 273afb3fe7ce0c25bd3bacdb4744d342d72df4f9 Mon Sep 17 00:00:00 2001 From: Arkadii Yakovets Date: Fri, 27 Oct 2023 15:57:15 -0700 Subject: [PATCH] Fix no-op tests - Use wget instead of curl for gene index downloads - Set specific unzip/rm file instructions - Set pre-commit to use Python 3.11 --- .github/workflows/config.yml | 2 ++ workers/dockerfiles/Dockerfile.no_op | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/config.yml b/.github/workflows/config.yml index 87be8123f..bd9fe259c 100644 --- a/.github/workflows/config.yml +++ b/.github/workflows/config.yml @@ -23,6 +23,8 @@ jobs: AWS_SECRET_ACCESS_KEY: ${{ secrets.OP_AWS_SECRET_ACCESS_KEY }} - uses: actions/setup-python@v3 + with: + python-version: '3.11' - uses: hashicorp/setup-terraform@v2 with: diff --git a/workers/dockerfiles/Dockerfile.no_op b/workers/dockerfiles/Dockerfile.no_op index 67cf380be..3fd393005 100644 --- a/workers/dockerfiles/Dockerfile.no_op +++ b/workers/dockerfiles/Dockerfile.no_op @@ -19,10 +19,10 @@ RUN mkdir -p gene_indexes WORKDIR /home/user/gene_indexes ENV ID_REFINERY_URL=https://zenodo.org/record/1410647/files/all_1536267482.zip RUN < /etc/identifier_refinery_url -unzip *.zip -rm *.zip +wget $ID_REFINERY_URL +unzip all_1536267482.zip +rm all_1536267482.zip EOF # End Noop-specific.