Add pytest actions workflow

This commit is contained in:
Darren Eberly
2022-08-11 01:58:19 -04:00
parent b42dfcfcff
commit 471ea06e02

38
.github/workflows/test.yml vendored Normal file
View File

@@ -0,0 +1,38 @@
name: Test
on:
push:
branches: [development]
pull_request:
branches: [development]
workflow_dispatch:
jobs:
build:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.7', '3.8', '3.9', '3.10']
architecture: ['x64']
steps:
- uses: actions/checkout@master
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.architecture }}
- name: dependencies
run: |
python -m pip install -U pip wheel setuptools
- name: wheel
run: |
python -m pip install -e .[tests]
- name: pytest
run: |
pytest --cov=pytiled_parser --cov-report=xml --cov-report=html