From 68945f95d9265862c44fdc02b0c48847f04b3515 Mon Sep 17 00:00:00 2001 From: Florian Knoop Date: Mon, 30 Sep 2024 14:44:16 +0200 Subject: [PATCH] ci | add github action for pytest --- .github/workflows/pytest.yml | 20 ++++++++++++++++++++ 1 file changed, 20 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..c694f42 --- /dev/null +++ b/.github/workflows/pytest.yml @@ -0,0 +1,20 @@ +name: pytest +on: [push] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install . + - name: Test with pytest + run: | + pip install pytest pytest-cov + pytest tests.py --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html +