test #91
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI Pipline | |
on: | |
push: | |
branches: | |
- soumaya | |
pull_request: | |
branches: | |
- soumaya | |
jobs: | |
qa: | |
name: Check tests | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the code | |
- name: Checkout on master | |
uses: actions/checkout@v3 | |
# build and start docker services in background | |
- name: Build and start Docker Compose services | |
run: | | |
docker compose up -d --build | |
docker compose ps | |
# install dependencies for test | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
# start test | |
- name: Run tests | |
run: | | |
pytest src/testing/ | |
# stop and remove service | |
- name: Stop and remove Docker Compose services | |
run: docker compose down |