Skip to content

Commit

Permalink
adding tests in pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
pprajapa-42 committed Oct 17, 2024
1 parent 9fe454f commit 4706a27
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
26 changes: 25 additions & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,32 @@ on:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build_and_push_backend_image"
test_backend:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: true
recursive: true

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
pip install -r requirements.txt
- name: Run tests
run: |
pytest
build_and_push_backend_image:
# The type of runner that the job will run on
needs: test_backend
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
Expand Down
2 changes: 1 addition & 1 deletion tq_backend

0 comments on commit 4706a27

Please sign in to comment.