Skip to content

Commit

Permalink
Added CI for Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bpiow committed Sep 29, 2024
1 parent 2f2be14 commit 8bf7047
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI Pipeline

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest

services:
mongodb:
image: mongo:latest
ports:
- 27017:27017

steps:
- name: Checkout code
uses: actions/checkout@v3

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

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r analyzer/requirements.txt
- name: Run tests
run: |
pytest --maxfail=5 --disable-warnings

0 comments on commit 8bf7047

Please sign in to comment.