dukpy/.github/workflows/run-tests.yml

29 lines
945 B
YAML

name: run-tests
on: [push]
jobs:
build:
name: Run tests
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["2.7", "3.6", "3.7", "3.8", "3.9"]
runs-on: ${{ matrix.os }}
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 dependencies
run: |
python -m pip install --upgrade pip
pip install -U --upgrade-strategy=eager --pre -e .[testing,webassets]
pip install 'pycparser==2.18'
pip install 'coveralls'
- name: Test with pytest
run: |
pytest -v --cov=dukpy --cov-report=term-missing
- name: Publish to coveralls.io
uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ github.token }}