Skip to content

Commit

Permalink
Initial backend tests script
Browse files Browse the repository at this point in the history
  • Loading branch information
MelissaAutumn committed Dec 9, 2023
1 parent 70e20b5 commit 88b197f
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/backend-tests.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 88b197f

Please sign in to comment.