Skip to content

Commit

Permalink
Added apt dependencies to run test Github action
Browse files Browse the repository at this point in the history
  • Loading branch information
fedesemeraro committed Mar 11, 2024
1 parent 6b992c2 commit af6d4aa
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/test-arcjetCV.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,29 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest] # macos-latest, windows-latest,
python-version: ['3.9']
python-version: ['3.10']
env:
DISPLAY: ':99.0'

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
- name: Install apt dependencies ${{ matrix.os }}
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
/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: |
sudo apt-get update && sudo apt-get install libgl1 libopengl0 libgl-dev libegl-dev libx11-dev libxcb1-dev -y
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
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"
Expand Down

0 comments on commit af6d4aa

Please sign in to comment.