Skip to content

Commit

Permalink
added apptainer setup actions
Browse files Browse the repository at this point in the history
  • Loading branch information
farchaab committed Nov 1, 2024
1 parent 58c2d5d commit 568e080
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ jobs:
with:
fetch-depth: 0

- name: Setup apptainer
uses: eWaterCycle/setup-apptainer@v2.0.0

- name: Setup MeSS environment
uses: conda-incubator/setup-miniconda@v3
with:
Expand All @@ -54,18 +57,6 @@ jobs:
python-version: ${{ matrix.python-version }}
auto-update-conda: true

- name: Setup apt dependencies
run: |
sudo add-apt-repository -y ppa:apptainer/ppa
sudo apt-get update
sudo apt install -y squashfuse fuse2fs gocryptfs apptainer
- name: Disable apparmor namespace restrictions for apptainer
run: |
sudo sh -c 'echo kernel.apparmor_restrict_unprivileged_userns=0 \
>/etc/sysctl.d/90-disable-userns-restrictions.conf'
sudo sysctl -p /etc/sysctl.d/90-disable-userns-restrictions.conf
- name: Install MeSS and pytest-cov
run: |
pip install -e .
Expand Down

0 comments on commit 568e080

Please sign in to comment.