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

29 lines
945 B
YAML
Raw Normal View History

2022-03-24 19:53:16 +00:00
name: run-tests
on: [push]
jobs:
build:
name: Run tests
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
2022-03-24 20:00:24 +00:00
python-version: ["2.7", "3.6", "3.7", "3.8", "3.9"]
2022-03-24 19:53:16 +00:00
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: |
2022-03-24 20:00:24 +00:00
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 }}