Skip to content

Commit

Permalink
Merge pull request #1262 from dandi/gh-1261
Browse files Browse the repository at this point in the history
Add CI run testing against NFS
  • Loading branch information
yarikoptic authored Apr 4, 2023
2 parents 84ed322 + 596b97f commit 0be71d3
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ jobs:
- os: ubuntu-latest
python: 3.7
mode: dev-deps
- os: ubuntu-latest
python: 3.7
mode: nfs

steps:
- name: Set up environment
Expand All @@ -68,6 +71,18 @@ jobs:
pip install git+https://github.com/NeurodataWithoutBorders/nwbinspector
pip install git+https://github.com/NeurodataWithoutBorders/pynwb
- name: Create NFS filesystem
if: matrix.mode == 'nfs'
run: |
mkdir /tmp/nfsmount_ /tmp/nfsmount
mkdir /tmp/nfsmount_/tmp /tmp/nfsmount_/home
echo "/tmp/nfsmount_ localhost(rw)" | sudo tee /etc/exports
sudo apt-get install -y nfs-kernel-server
sudo exportfs -a
sudo mount -t nfs localhost:/tmp/nfsmount_ /tmp/nfsmount
echo TMPDIR=/tmp/nfsmount/tmp >> "$GITHUB_ENV"
echo HOME=/tmp/nfsmount/home >> "$GITHUB_ENV"
- name: Run all tests
if: matrix.mode != 'dandi-api'
run: |
Expand Down

0 comments on commit 0be71d3

Please sign in to comment.