From 27d1da302cb25602e223b8f205839644da485c73 Mon Sep 17 00:00:00 2001 From: Michael Hanke Date: Fri, 6 Mar 2020 09:45:08 +0100 Subject: [PATCH] TST: Add Github CI workflow to run core tests on a crippled FS This aims to disentangle detection of issues with Windows and issues with adjusted branch operation. There is no expectation that a run would initially succeed... even on Linux. --- .github/workflows/test_crippled.yml | 48 +++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/test_crippled.yml diff --git a/.github/workflows/test_crippled.yml b/.github/workflows/test_crippled.yml new file mode 100644 index 0000000000..fd2881bfef --- /dev/null +++ b/.github/workflows/test_crippled.yml @@ -0,0 +1,48 @@ +name: CrippledFS + +on: [pull_request] + +jobs: + test: + + runs-on: ubuntu-latest + + steps: + - name: Set up system + shell: bash + run: | + bash <(wget -q -O- http://neuro.debian.net/_files/neurodebian-travis.sh) + sudo apt-get update -qq + sudo apt-get install eatmydata + sudo eatmydata apt-get install git-annex-standalone dosfstools + # 500 MB VFAT FS in a box + sudo dd if=/dev/zero of=/crippledfs.img count=500 bs=1M + sudo mkfs.vfat /crippledfs.img + # mount + sudo mkdir /crippledfs + sudo mount -o "uid=$(id -u),gid=$(id -g)" /crippledfs.img /crippledfs + - name: Set up environment + run: | + git config --global user.email "test@github.land" + git config --global user.name "GitHub Almighty" + - uses: actions/checkout@v1 + - name: Set up Python 3.5 + uses: actions/setup-python@v1 + with: + python-version: 3.5 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: WTF!? + run: | + datalad wtf + mount + - name: Run benchmarks + env: + # forces all test repos/paths into the VFAT FS + TMPDIR: /crippledfs + run: | + mkdir -p __testhome__ + cd __testhome__ + python -m nose -s -v datalad.core