-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix unit tests * use github actions * Update ci.yml * Update ci.yml * update ci.yml * remove stray - * don't freshclam * no need to start clamd on ubuntu * add sockets for testing to clamd.conf * please sudo + some isort * install daemon? * start clamd + some isort * coverage * debug clamd * configure defaults * configure defaults * freshclam? * use different logfile for freshclam * typo * test virus signature changes, debug geckodriver * debug geckodriver * fix test * install xvfb * install xvfb * remove robot test dummy * remove robot test boilerplate * omit createcoverage script to deal with coverage errors * pip location * github token for coveralls; rm .travis.yml * play with coverage command line; update changelog, python versions * try lemurheavy/coveralls-public#1435 (comment) * update readme badges * test Python 3.6-3.8, coverage from master (once it's calculated) * make tests more robust
- Loading branch information
Showing
18 changed files
with
148 additions
and
224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: collective.clamav CI | ||
on: [push] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.6, 3.7, 3.8] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install ClamAV | ||
run: | | ||
sudo apt-get -y install clamav clamav-daemon clamav-freshclam clamav-unofficial-sigs | ||
sudo bash -c 'echo -e "TCPSocket 3310\nLocalSocket /tmp/clamd.socket\n$(cat /etc/clamav/clamd.conf)" > /etc/clamav/clamd.conf' | ||
sudo freshclam -l /tmp/freshclam.log | ||
sudo systemctl start clamav-daemon.service | ||
sudo systemctl status clamav-daemon.service | ||
head /etc/clamav/clamd.conf | ||
- name: pip install | ||
run: pip install -r requirements.txt -c constraints_plone52.txt | ||
- name: buildout | ||
run: buildout -t 10 -c test_plone52.cfg | ||
- name: Run tests | ||
run: bin/test --all | ||
- name: Coverage | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
pip install coverage | ||
coverage run --include=src/* bin/test --all | ||
coverage json --include=src/* | ||
pip install -q coveralls | ||
coveralls --service=github |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[settings] | ||
# for details see | ||
# http://docs.plone.org/develop/styleguide/python.html#grouping-and-sorting | ||
force_alphabetical_sort = True | ||
force_single_line = True | ||
lines_after_imports = 2 | ||
line_length = 200 | ||
not_skip = __init__.py |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.