From 1088cedaf3a720e174e7199e2b301e1b84d507a9 Mon Sep 17 00:00:00 2001 From: DavidoTek <54072917+DavidoTek@users.noreply.github.com> Date: Sat, 18 May 2024 21:13:08 +0200 Subject: [PATCH] Add PyTest CI workflow --- .github/workflows/testing-ci.yml | 39 ++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/testing-ci.yml diff --git a/.github/workflows/testing-ci.yml b/.github/workflows/testing-ci.yml new file mode 100644 index 00000000..197a852f --- /dev/null +++ b/.github/workflows/testing-ci.yml @@ -0,0 +1,39 @@ +name: Test using Pytest + +on: + push: + branches: + - main + pull_request: + +jobs: + tests: + name: "Run PyTest" + runs-on: ubuntu-22.04 + strategy: + matrix: + python-version: ["3.10"] + + steps: + - uses: actions/checkout@v4 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: "${{ matrix.python-version }}" + + - name: Install dependencies + run: pip install pytest pytest-md pytest-emoji + + - name: Install ProtonUp-Qt + run: pip install -e . + + - name: Run pytest + uses: pavelzw/pytest-action@v2 + with: + verbose: true + emoji: true + job-summary: true + custom-arguments: '-q' + click-to-expand: true + report-title: 'ProtonUp-Qt Test Report'