-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (46 loc) · 1.59 KB
/
test-arcjetCV.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
name: ⚙️ Test arcjetCV
on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest] # macos-latest, windows-latest,
python-version: ['3.10']
env:
DISPLAY: ':99.0'
steps:
- uses: actions/checkout@v3
with:
lfs: true
- name: Set up Python ${{ matrix.python-version }}
uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install apt dependencies
run: |
sudo apt-get update
sudo apt-get install -y libegl1 libdbus-1-3 libxkbcommon-x11-0 \
libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 \
libxcb-render-util0 libxcb-xinerama0 libxcb-xinput0 libxcb-xfixes0 \
x11-utils libxcb-cursor0 libopengl0 libegl1-mesa
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1920x1200x24 -ac +extension GLX
- name: Install conda dependencies
run: |
conda env create -f env/arcjetCV_env_cpu.yml
conda init bash
source ~/.bashrc
conda activate arcjetCV
conda install -c conda-forge pytest pytest-qt pytest-mock qt-main pytest-xvfb
python -m pip install -e .
python -c "import arcjetCV"
- name: Test with pytest
run: |
conda init bash
source ~/.bashrc
conda activate arcjetCV
pytest -s