Add tests

This commit is contained in:
Rikko 2022-08-29 22:31:28 +05:30
parent dc30f6b774
commit 3f177bd27e
5 changed files with 105 additions and 0 deletions

25
.github/workflows/test.yml vendored Normal file
View file

@ -0,0 +1,25 @@
name: Tests
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Code Style
run: |
python -m pip install --upgrade pip
pip install flake8
flake8
- name: Tests
run: |
pip install -r test/pip_reqs.txt
python -m unittest discover