Update Github Workflows

This commit is contained in:
Sean Whalen
2022-01-05 10:29:19 -05:00
parent 293dfc46b7
commit c0f82fa363
2 changed files with 7 additions and 47 deletions
+7 -7
View File
@@ -29,6 +29,13 @@ jobs:
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Check README.rst syntax
run: |
rstcheck --report warning README.rst
- name: Test building documentation
run: |
cd docs
make html
- name: Run unit tests
run: |
coverage run tests.py
@@ -41,13 +48,6 @@ jobs:
- name: Check code style
run: |
flake8 *.py parsedmarc/*.py
- name: Check README.rst syntax
run: |
rstcheck --report warning README.rst
- name: Test building documentation
run: |
cd docs
make html
- name: Test building packages
run: |
python3 setup.py sdist
-40
View File
@@ -1,40 +0,0 @@
language: python
os: linux
dist: focal
python:
- '3.6'
- '3.7'
- '3.8'
- '3.9'
# commands to install dependencies
before_install:
- "sudo apt-get update"
- "sudo apt-get install -y libemail-outlook-message-perl"
- "curl -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.5.1.deb"
- "sudo dpkg -i --force-confnew elasticsearch-*.deb"
- "sudo systemctl restart elasticsearch"
- "sudo systemctl --no-pager status elasticsearch"
install:
- "pip install --upgrade pip"
- "pip install -U -r requirements.txt"
# commands to run samples
script:
- "flake8 *.py parsedmarc/*.py"
- "rstcheck --report warning README.rst"
- "cd docs"
- "make html"
- "cd .."
- "coverage run tests.py"
- "python setup.py install"
- "parsedmarc --debug -c ci.ini samples/aggregate/*"
- "parsedmarc --debug -c ci.ini samples/forensic/*"
- "python setup.py sdist"
- "python setup.py bdist_wheel"
after_success:
- "codecov"