From 23e19f0d49f0c9a64b72edaa2d937e1487cfe830 Mon Sep 17 00:00:00 2001 From: Mihai Boldeanu Date: Thu, 14 Sep 2023 11:08:41 +0300 Subject: [PATCH] Addeda a testing workflow for github --- .github/workflows/python-test.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/python-test.yml diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml new file mode 100644 index 0000000..c2e588e --- /dev/null +++ b/.github/workflows/python-test.yml @@ -0,0 +1,30 @@ +name: Python Test + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + python-version: [3.9, 3.10, 3.11] + + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Install Dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Run Tests + run: | + pytest