This commit is contained in:
33
.gitea/workflows/run-mucapy.yml
Normal file
33
.gitea/workflows/run-mucapy.yml
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
name: Run MuCaPy
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ main ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ main ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-run:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Set up Python 3.10
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: '3.10'
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install -r requirements.txt
|
||||||
|
|
||||||
|
- name: Install Xvfb and libgl (for PyQt5 and OpenCV GUI)
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y xvfb libgl1-mesa-glx
|
||||||
|
|
||||||
|
- name: Run MuCaPy main.py with Xvfb
|
||||||
|
run: |
|
||||||
|
xvfb-run --auto-servernum --server-args='-screen 0 1920x1080x24' python mucapy/main.py
|
||||||
Reference in New Issue
Block a user