Skip to content

Commit

Permalink
Merge pull request #3 from redhox/experimental
Browse files Browse the repository at this point in the history
add workflow
  • Loading branch information
redhox authored Nov 4, 2024
2 parents 8cc8db6 + f8b337c commit adc6deb
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Python Package

on: # Déclencheurs d'événements
push:
branches: [ main ] # Exécutez ce workflow sur chaque push à la branche main
pull_request:
branches: [ main ] # Exécutez ce workflow sur chaque pull request vers la branche main

jobs:
build:
runs-on: ubuntu-latest # Utilisez la dernière version d'Ubuntu

steps:
- name: Checkout code
uses: actions/checkout@v2 # Récupérer le code du dépôt

- name: Set up Python
uses: actions/setup-python@v2 # Configurer Python
with:
python-version: '3.8' # Spécifiez la version de Python à utiliser

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt # Installer les dépendances
- name: Run tests
run: |
pytest tests/test_def.py

0 comments on commit adc6deb

Please sign in to comment.