Skip to content

Commit

Permalink
CI: speed up Singularity install
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-c committed Jan 9, 2023
1 parent ab1b0e2 commit da0f855
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

env:
singularity_version: 3.8.3

jobs:

tox:
Expand All @@ -40,9 +37,9 @@ jobs:

- name: Set up Singularity
if: ${{ matrix.step == 'unit' || matrix.step == 'mypy' }}
uses: eWaterCycle/setup-singularity@v7
with:
singularity-version: ${{ env.singularity_version }}
run: |
wget https://github.com/sylabs/singularity/releases/download/v3.10.4/singularity-ce_3.10.4-focal_amd64.deb
sudo apt-get install -y ./singularity-ce_3.10.4-focal_amd64.deb
- name: Give the test runner user a name to make provenance happy.
if: ${{ matrix.step == 'unit' || matrix.step == 'mypy' }}
Expand Down Expand Up @@ -133,9 +130,9 @@ jobs:

- name: Set up Singularity
if: ${{ matrix.container == 'singularity' }}
uses: eWaterCycle/setup-singularity@v7
with:
singularity-version: ${{ env.singularity_version }}
run: |
wget https://github.com/sylabs/singularity/releases/download/v3.10.4/singularity-ce_3.10.4-jammy_amd64.deb
sudo apt-get install -y ./singularity-ce_3.10.4-jammy_amd64.deb
- name: Singularity cache
if: ${{ matrix.container == 'singularity' }}
Expand Down Expand Up @@ -174,9 +171,9 @@ jobs:
- uses: actions/checkout@v3

- name: Set up Singularity
uses: eWaterCycle/setup-singularity@v7
with:
singularity-version: ${{ env.singularity_version }}
run: |
wget https://github.com/sylabs/singularity/releases/download/v3.10.4/singularity-ce_3.10.4-jammy_amd64.deb
sudo apt-get install -y ./singularity-ce_3.10.4-jammy_amd64.deb
- name: Set up Python
uses: actions/setup-python@v4
Expand Down
1 change: 1 addition & 0 deletions conformance-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ fi

if [ "${CONTAINER}" == "singularity" ]; then
export CWL_SINGULARITY_CACHE="$SCRIPT_DIRECTORY/sifcache"
mkdir --parents "${CWL_SINGULARITY_CACHE}"
fi

# Setup environment
Expand Down

0 comments on commit da0f855

Please sign in to comment.