generated from datalad/datalad-extension-template
-
Notifications
You must be signed in to change notification settings - Fork 5
56 lines (52 loc) · 1.88 KB
/
test_crippledfs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: crippled-filesystems
on: [push, 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)
# enable repo for devel git-annex, if needed
#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
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
uses: actions/setup-python@v4
with:
python-version: 3.7
- name: Install dependencies
run: |
pip install -r requirements-devel.txt
python -m pip install --upgrade pip
- name: Installation
run: |
# package install
python -m pip install --user .
- name: Run tests
env:
# forces all test repos/paths into the VFAT FS
TMPDIR: /crippledfs
DATALAD_TESTS_EBRAINS__OIDC__SECRET: ${{ secrets.EBRAINS_CI_SECRET }}
run: |
mkdir -p __testhome__
cd __testhome__
# give detailed info on actual test setup
datalad wtf
echo "== mount >>"
mount
echo "<< mount =="
python -m pytest -s -v --doctest-modules --cov=datalad_ebrains --pyargs datalad_ebrains