From 67d2cd1eed64252a41b5074d67dad3a66beb50d8 Mon Sep 17 00:00:00 2001 From: Waqar Ahmed Date: Thu, 4 May 2023 20:06:46 +0400 Subject: [PATCH] Add github action to run tests --- .github/workflows/test.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..6f298d6 --- /dev/null +++ b/.github/workflows/test.yaml @@ -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/