Add github action to run tests

This commit is contained in:
Waqar Ahmed
2023-05-04 20:06:46 +04:00
parent 10e9c46d37
commit 67d2cd1eed

22
.github/workflows/test.yaml vendored Normal file
View File

@@ -0,0 +1,22 @@
name: test
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.11
uses: actions/setup-python@v1
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r tests/requirements.txt
pip install -r requirements.txt
- name: Running test
run: pytest tests/unit/