From d5c40eae205794d3c89633ce507f8b02da3d9c09 Mon Sep 17 00:00:00 2001 From: Fabiana Campanari Date: Tue, 5 Mar 2024 19:21:50 -0300 Subject: [PATCH] pytest_workflow.yml Signed-off-by: Fabiana Campanari --- .github/workflows/pytest_workflow.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/pytest_workflow.yml diff --git a/.github/workflows/pytest_workflow.yml b/.github/workflows/pytest_workflow.yml new file mode 100644 index 0000000..3abc5df --- /dev/null +++ b/.github/workflows/pytest_workflow.yml @@ -0,0 +1,21 @@ +name: pytest_workflow + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - 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