diff --git a/.github/workflows/backend-tests.yml b/.github/workflows/backend-tests.yml new file mode 100644 index 000000000..584ebbf8e --- /dev/null +++ b/.github/workflows/backend-tests.yml @@ -0,0 +1,28 @@ +# This workflow will install backend's requirements and run tests + +name: Run Backend Tests + +on: [push] + +permissions: + contents: read + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.10' + - name: Install dependencies + run: | + cd ./backend + python -m pip install --upgrade pip + python -m pip install -r requirements.txt + python -m pip install -r requirements-test.txt + - name: Test with pytest + run: | + cd ./backend/test && pytest