Skip to content

Commit

Permalink
Add pytest workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
AlteredCoder committed Jan 2, 2025
1 parent 7a3e5fd commit 722e9a6
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -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/
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit 722e9a6

Please sign in to comment.