Skip to content

Commit

Permalink
CI for tests (#36)
Browse files Browse the repository at this point in the history
* Les tests pour la base de données sont complétés.

* ci for tests

* Les tests pour la base de données sont complétés.

* Modification au fichier READ.ME pour enlever des lignes inutiles.

---------

Co-authored-by: Davina <nmbiya1@gmail.com>
  • Loading branch information
SonOfLope and dadatmmmm authored Feb 4, 2023
1 parent fba7d36 commit a21db64
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@

name: CI
on: [push, pull_request]

jobs:

test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Start containers
run: docker-compose -f "docker-compose-dev.yml" up -d

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run test suite
run: |
python -m pytest -v
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,11 @@ docker build -t trema --build-arg token=<jeton> .
docker run trema
```

## Test

### Lancement des tests


Pour lancer tous les tests du projet, lancez
la commande suivante.
```
Expand All @@ -90,4 +93,4 @@ Pour lancer un seul test d'un fichier, lancez la commande
suivante.
```
pytest -v ./tests/[nom du fichier].py::[nom de la fonction]
```

0 comments on commit a21db64

Please sign in to comment.