Skip to content

Commit

Permalink
Modified github action
Browse files Browse the repository at this point in the history
  • Loading branch information
fedesemeraro committed Mar 11, 2024
1 parent af6d4aa commit 3a013da
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/test-arcjetCV.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,27 @@ jobs:
uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install apt dependencies ${{ matrix.os }}
- name: Install apt dependencies
run: |
sudo apt-get update
sudo apt install libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 x11-utils -y
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
sudo apt-get install libgl1 libopengl0 libgl-dev libegl-dev libx11-dev libxcb1-dev -y
- name: Install conda dependencies
run: |
conda env create -f env/arcjetCV_env_cpu.yml
conda init bash
source ~/.bashrc
conda activate arcjetCV
conda activate arcjetcv
conda install -c conda-forge pytest pytest-qt pytest-mock qt-main pytest-xvfb
python -m pip install --upgrade pip
python -m pip install -e .
python -c "import arcjetCV"
- name: Test with pytest
working-directory: ./tests
run: |
conda init bash
source ~/.bashrc
conda activate arcjetCV
conda activate arcjetcv
pytest

0 comments on commit 3a013da

Please sign in to comment.