From 864898419e810055b51e3a32fccb00a62aab9a6b Mon Sep 17 00:00:00 2001 From: Brianna Rainey Date: Thu, 22 Jan 2026 21:53:26 -0500 Subject: add GitHub Action to run tests --- .github/workflows/python-app.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/python-app.yml (limited to '.github') diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml new file mode 100644 index 0000000..fefb727 --- /dev/null +++ b/.github/workflows/python-app.yml @@ -0,0 +1,40 @@ +# This workflow will install Python dependencies and run tests with a single version of Python +# +# For more information see: +# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python +# +# For information on using pytest-qt in GitHub Actions see: +# https://pytest-qt.readthedocs.io/en/latest/troubleshooting.html#github-actions-azure-pipelines-travis-ci-and-gitlab-ci-cd + +name: Python application + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +permissions: + contents: read + +jobs: + build: + + runs-on: ubuntu-latest + env: + DISPLAY: ':99.0' + steps: + - uses: actions/checkout@v3 + - name: Set up Python 3.12 + uses: actions/setup-python@v3 + with: + python-version: "3.12" + - name: Install system dependencies + run: | + sudo apt install -y ffmpeg libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 x11-utils libgl1 libegl1 libdbus-1-3 libxcb-cursor0 fonts-noto-core + - name: Install Python dependencies + run: | + pip install . pytest pytest-qt pytest-xvfb + - name: Test with pytest + run: | + python3 -m pytest -v \ No newline at end of file -- cgit v1.2.3