diff --git a/.gitea/workflows/run-mucapy.yml b/.gitea/workflows/run-mucapy.yml new file mode 100644 index 0000000..c393781 --- /dev/null +++ b/.gitea/workflows/run-mucapy.yml @@ -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 \ No newline at end of file