Add github actions for precommit and tests

This commit is contained in:
Luke Van Seters 2021-07-22 14:33:11 -04:00
parent 674e4a1c6c
commit e79a4bb04b

25
.github/workflows vendored Normal file
View File

@ -0,0 +1,25 @@
name: Python package
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements_dev.txt
- name: Run precommit
run: |
pre-commit run --all-files
- name: Test with unittest
run: |
python -m unittest tests/*.py