Add github actions for precommit and tests
This commit is contained in:
parent
674e4a1c6c
commit
e79a4bb04b
25
.github/workflows
vendored
Normal file
25
.github/workflows
vendored
Normal 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
|
Loading…
x
Reference in New Issue
Block a user