ci: run pytest in CI

This commit is contained in:
Tim Grelka
2025-07-04 00:07:30 +02:00
parent 8c182737f3
commit 3409710a0e
+23
View File
@@ -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