From 3409710a0e0c57534c116de2b4f2b6822e5ff545 Mon Sep 17 00:00:00 2001 From: Tim Grelka Date: Fri, 4 Jul 2025 00:07:30 +0200 Subject: [PATCH] ci: run pytest in CI --- .github/workflows/pytest.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/pytest.yml diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml new file mode 100644 index 0000000..681e970 --- /dev/null +++ b/.github/workflows/pytest.yml @@ -0,0 +1,23 @@ +name: Pytest +on: [push, pull_request] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true +jobs: + ruff: + runs-on: ubuntu-latest + steps: + - name: Concurrency Group + env: + GROUP: ${{ github.workflow }}-${{ github.ref }} + run: echo "$GROUP" + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + cache: 'pip' + - name: Install dependencies + run: pip install -r requirements.txt + - name: Test with pytest + run: pytest ./test --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html + \ No newline at end of file