Skip to content

Commit 3cadef2

Browse files
committed
Add CI with docker for OAR
1 parent 867e1c0 commit 3cadef2

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/testoar.yml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: OAR
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- feature/oar
8+
pull_request:
9+
10+
jobs:
11+
build:
12+
strategy:
13+
matrix:
14+
python-version: ['3.8', '3.9', '3.10', '3.11']
15+
fail-fast: false
16+
runs-on: ubuntu-20.04
17+
18+
env:
19+
OAR_VERSION: 2.5.9
20+
21+
steps:
22+
- name: Disable etelemetry
23+
run: echo "NO_ET=TRUE" >> $GITHUB_ENV
24+
- name: Checkout Pydra repo
25+
uses: actions/checkout@v4
26+
with:
27+
repository: ${{ github.repository }}
28+
- name: Test oar with oardocker
29+
run: |
30+
python -m venv oardocker
31+
cd oardocker
32+
source bin/activate
33+
pip install oar-docker
34+
oardocker init -e bullseye
35+
oardocker build
36+
oardocker install http://oar-ftp.imag.fr/oar/2.5/sources/stable/oar-$OAR_VERSION.tar.gz
37+
oardocker start -n 2 -v $PWD:/pydra -e NO_ET=$NO_ET
38+
docker ps -a
39+
cat /proc/1/cgroup
40+
oardocker exec --no-tty frontend echo $NO_ET
41+
oardocker exec --no-tty frontend ls -la /pydra && echo list pydra dir
42+
oardocker exec --no-tty frontend pip install --upgrade pip
43+
oardocker exec --no-tty frontend pip install -e ".[test]"
44+
oardocker exec --no-tty frontend python -c 'import pydra; print(pydra.__version__)'
45+
oardocker exec --no-tty frontend pytest --color=yes -vs --cov pydra --cov-config /pydra/.coveragerc --cov-report xml:/pydra/cov.xml --doctest-modules /pydra/pydra/ -k 'not test_audit_prov and not test_audit_prov_messdir_1 and not test_audit_prov_messdir_2 and not test_audit_prov_wf and not test_audit_all'
46+
oardocker exec --no-tty frontend pip install codecov urllib3==1.26.6
47+
oardocker exec --no-tty frontend codecov --root /pydra -f /pydra/cov.xml -F unittests

0 commit comments

Comments
 (0)