blob: d1c45e63a6345ce0f8e992cdc49674d384e57132 [file] [log] [blame]
name: Unit Tests
on: [push,workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
# python-version: [2.7, 3.5, 3.6, 3.7]
python-version: [3.7]
steps:
- uses: actions/checkout@dkim_fixes
with:
persist-credentials: false
- uses: actions/checkout@dkim_fixes
with:
persist-credentials: false
repository: apache/incubator-ponymail-unit-tests
path: pmtests
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r tools/requirements.txt
pip install html2text # optional dependency, but needed for tests
- name: Test with pytest
run: |
pip install pytest
python -m pytest test/test_defuzzer.py
- name: Test with Ponymail Unit tests
run: |
sed -e '/incubator/s/# cropout:/cropout:/' tools/archiver.yaml.example >tools/archiver.yaml
cd pmtests
python runall.py --root ..