Skip to content
This repository was archived by the owner on Sep 19, 2023. It is now read-only.

Commit 3000091

Browse files
authored
Legacy removal, add GitHub actions, refactor code + tests (#6)
Added github actions, refactored code and tests
1 parent b61ad98 commit 3000091

File tree

10 files changed

+824
-69
lines changed

10 files changed

+824
-69
lines changed

.github/workflows/main.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Lint & test
2+
3+
on: push
4+
5+
jobs:
6+
run-linters:
7+
name: Run linters
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@v2
12+
- name: Install
13+
uses: abatilo/[email protected]
14+
with:
15+
python_version: 3.7.0
16+
poetry_version: 0.12.17
17+
working_directory: .
18+
args: install
19+
- name: Run flake8
20+
uses: abatilo/[email protected]
21+
with:
22+
python_version: 3.7.0
23+
poetry_version: 0.12.17
24+
working_directory: .
25+
args: run flake8 ./clammy
26+
pytest:
27+
name: pytest
28+
runs-on: ubuntu-latest
29+
steps:
30+
- uses: actions/checkout@master
31+
- name: Install
32+
uses: abatilo/[email protected]
33+
with:
34+
python_version: 3.8.0
35+
poetry_version: 0.12.17
36+
working_directory: .
37+
args: install
38+
- name: Run pytest
39+
uses: abatilo/[email protected]
40+
with:
41+
python_version: 3.8.0
42+
poetry_version: 0.12.17
43+
working_directory: .
44+
args: run python -m pytest

.github/workflows/release.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
on:
2+
push:
3+
# Sequence of patterns matched against refs/tags
4+
tags:
5+
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
6+
7+
name: Create release
8+
9+
jobs:
10+
build:
11+
name: Create Release
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v2
16+
- name: Install
17+
uses: abatilo/[email protected]
18+
with:
19+
python_version: 3.7.0
20+
poetry_version: 0.12.17
21+
working_directory: .
22+
args: install
23+
- name: Run pytest
24+
uses: abatilo/[email protected]
25+
with:
26+
python_version: 3.7.0
27+
poetry_version: 0.12.17
28+
working_directory: .
29+
args: run python -m pytest
30+
- name: Create release
31+
id: create_release
32+
uses: actions/create-release@v1
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
with:
36+
tag_name: ${{ github.ref }}
37+
release_name: Release ${{ github.ref }}
38+
draft: false
39+
prerelease: false

.travis.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# clammy
2+
3+
## About
4+
`clammy` is a Python wrapper library for the ClamAV daemon, `clamd`, making it simple to implement anti-virus functionality into your project. This is a modern fork of [graingert/python-clamd](https://github.com/graingert/python-clamd) .
5+
6+
## License
7+
`clammy` is released as open-source software under the LGPL license in following with the license of the original fork.
8+
9+
## Installation
10+
11+
### Installing the ClamAV daemon (`clamd`)
12+
13+
```
14+
sudo apt-get install clamav-daemon clamav-freshclam clamav-unofficial-sigs
15+
sudo freshclam
16+
sudo service clamav-daemon start
17+
```
18+
19+
### Installing `clammy`
20+
21+
```
22+
pip install clammy
23+
```

README.rst

Lines changed: 0 additions & 53 deletions
This file was deleted.

0 commit comments

Comments
 (0)