add pytest to github action

This commit is contained in:
Mike Kinney
2021-12-01 09:36:46 -08:00
parent e53fe421e8
commit a811a9dee6

24
.github/workflows/ci.yml vendored Normal file
View File

@@ -0,0 +1,24 @@
name: Run Python Tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Python 3
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install markdown pdoc3 webencodings pyparsing twine autopep8 pylint pytest
- name: Run tests with pytest
run: pytest