test_crippledfs.yml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. name: crippled-filesystems
  2. on: [pull_request]
  3. jobs:
  4. test:
  5. runs-on: ubuntu-latest
  6. steps:
  7. - name: Set up system
  8. shell: bash
  9. run: |
  10. bash <(wget -q -O- http://neuro.debian.net/_files/neurodebian-travis.sh)
  11. # enable repo for devel git-annex, if needed
  12. #sudo sed -e 's|\(deb.*data\)|#\1|' -e 's|/debian |/debian-devel |' /etc/apt/sources.list.d/neurodebian.sources.list | sudo tee /etc/apt/sources.list.d/neurodebian-devel.sources.list
  13. sudo apt-get update -qq
  14. sudo apt-get install eatmydata
  15. sudo eatmydata apt-get install git-annex-standalone dosfstools xvfb
  16. # 500 MB VFAT FS in a box
  17. sudo dd if=/dev/zero of=/crippledfs.img count=500 bs=1M
  18. sudo mkfs.vfat /crippledfs.img
  19. # mount
  20. sudo mkdir /crippledfs
  21. sudo mount -o "uid=$(id -u),gid=$(id -g)" /crippledfs.img /crippledfs
  22. - name: Qt dependencies
  23. uses: tlambert03/setup-qt-libs@v1
  24. - name: Set up environment
  25. run: |
  26. git config --global user.email "test@github.land"
  27. git config --global user.name "GitHub Almighty"
  28. - uses: actions/checkout@v1
  29. - name: Set up Python 3.7
  30. uses: actions/setup-python@v1
  31. with:
  32. python-version: 3.7
  33. - name: Install dependencies
  34. run: |
  35. pip install -r requirements-devel.txt
  36. python -m pip install --upgrade pip
  37. - name: Installation
  38. run: |
  39. # package install
  40. python -m pip install .
  41. - name: Run tests
  42. env:
  43. # forces all test repos/paths into the VFAT FS
  44. TMPDIR: /crippledfs
  45. run: |
  46. mkdir -p __testhome__
  47. cd __testhome__
  48. # give detailed info on actual test setup
  49. datalad wtf
  50. echo "== mount >>"
  51. mount
  52. echo "<< mount =="
  53. python -m pytest -s -v --doctest-modules --cov=datalad_gooey --pyargs datalad_gooey