increased max limits for fps and skips in gui #62
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |