Create python-tests.yml

This commit is contained in:
Sean Whalen
2021-12-07 10:51:36 -05:00
committed by GitHub
parent 51eea6c08d
commit 2748022824

30
.github/workflows/python-tests.yml vendored Normal file
View File

@@ -0,0 +1,30 @@
name: Python tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.6
uses: actions/setup-python@v2
with:
python-version: "3.6"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run tests
run: |
tests.py
- name: Build docs
run: |
cd docs
make