blob: d78424e0778023b6f5920ab9b3f8e958910264bb [file] [log] [blame]
name: Python package
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@master
with:
persist-credentials: false
- uses: actions/checkout@master
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 test/requirements.txt
- name: Set up LUA
# This is the commit for v8.0.0 (current at time of approval by INFRA)
uses: leafo/gh-actions-lua@ea0ae38722c0b45aa4e770f7c4a650c6b26800d0
with:
luaVersion: "5.2"
- name: Basic Test with LUA
run: lua -v
# - name: Test with pytest
# run: |
# pip install pytest
# pytest
- name: Test with Ponymail Unit tests
run: |
sed -e 's/# cropout:/cropout:/' tools/ponymail.cfg.sample >tools/ponymail.cfg
cd pmtests
python runall.py --root ..
- name: Generator tests
run: |
cd test
python generatortest.py generatortest.yaml