From 722e9a6f134e7bc977e08ae496f9759ee56cd1c5 Mon Sep 17 00:00:00 2001 From: Kevin KADOSH Date: Thu, 2 Jan 2025 17:13:57 +0100 Subject: [PATCH] Add pytest workflow --- .github/workflows/pytest.yml | 21 +++++++++++++++++++++ README.md | 2 ++ 2 files 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..58cdb00 --- /dev/null +++ b/.github/workflows/pytest.yml @@ -0,0 +1,21 @@ +name: Python package + +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.11' + - name: Install requirements.txt + run: | + pip install -r requirements.txt + pip install pytest pytest-cov + - name: Run the tests + run: pytest tests/ \ No newline at end of file diff --git a/README.md b/README.md index 385912f..80f7b3f 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +![Tests](https://github.com/AlteredCoder/pyclamav/actions/workflows/pytest.yml/badge.svg) + # pyclamav `pyclamav` is a Python utility script that uses the `pyclamd` library to run ClamAV scans on specified folders and files that have been modified within a specified duration. This tool is configurable via a JSON configuration file and command-line arguments.