Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
cdc7203
chore: add .venv to .gitignore
NathanTesseyre May 21, 2026
67a8a16
fix: correct flask package name in requirements.txt
NathanTesseyre May 21, 2026
7dc7494
fix: add missing colon in app.py
NathanTesseyre May 21, 2026
f83868b
fix: add missing colon in app.py
NathanTesseyre May 21, 2026
b44a1fe
fix: use english variable name errors instead of erreurs in app.py
NathanTesseyre May 21, 2026
0c67d8d
fix: use english variable name errors instead of erreurs in app.py
NathanTesseyre May 21, 2026
f249d7f
fix: update API port in config.json
NathanTesseyre May 21, 2026
65a660c
fix: update API port in config.json
NathanTesseyre May 21, 2026
cae8022
fix: hardcode log filename instead of uninitialized variable in app.py
NathanTesseyre May 21, 2026
9344cb0
chore: remove outdated comments in app.py
NathanTesseyre May 21, 2026
3825645
fix: correct axios import typo
NathanTesseyre May 21, 2026
8e2a7eb
chore: use axios conventional response.data instead of response.body
NathanTesseyre May 21, 2026
5afd6a2
fix: correct axios dependency name in package.json
NathanTesseyre May 21, 2026
507377b
chore: add node_modules dir in .gitignore
NathanTesseyre May 21, 2026
6da7387
chore: add package-lock.json
NathanTesseyre May 21, 2026
4881e0d
ci: ajout pipeline GitHub Actions vérification Python et Node
NathanTesseyre May 21, 2026
ffbece6
chore: use config.json to load log_file in app.py instead of hardcode…
NathanTesseyre May 21, 2026
a96c8b3
feat: add python linting with ruff
NathanTesseyre May 21, 2026
de5904a
test: check ruff CI is working
NathanTesseyre May 21, 2026
5ceaba5
test: remove ruff verification test
NathanTesseyre May 21, 2026
a73952d
feat: add node linting with eslint
NathanTesseyre May 21, 2026
f840f8f
test: check eslint CI is working
NathanTesseyre May 21, 2026
0c13fac
test: remove eslint verification test
NathanTesseyre May 21, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 45 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,56 @@
name: CI
name: CI — Vérification API Python

on:
push:
branches: [ "main" ]
branches: [ main, 'fix/**', 'feat/**' ]
pull_request:
branches: [ "main" ]
branches: [ main ]

jobs:
build:
test-python-api:
runs-on: ubuntu-latest

steps:
- name: Checkout du code
- name: Récupérer le code
uses: actions/checkout@v4

- name: Exemple d'étape
run: echo "Ajoute tes étapes de build/test ici !"
- name: Installer Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Installer les dépendances
run: |
cd python-api
pip install -r requirements.txt

- name: Run Ruff
run: ruff check --output-format=github .

- name: Vérifier que Flask démarre sans erreur
run: |
cd python-api
timeout 5 python app.py || true
echo "Vérification terminée"

test-node-client:
runs-on: ubuntu-latest

steps:
- name: Récupérer le code
uses: actions/checkout@v4

- name: Installer Node.js 18
uses: actions/setup-node@v4
with:
node-version: '18'

- name: Installer les dépendances npm
run: |
cd node-client
npm install

- name: Run ESLint
run: |
cd node-client
npx eslint
8 changes: 8 additions & 0 deletions node-client/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import js from "@eslint/js";
import globals from "globals";
import { defineConfig } from "eslint/config";

export default defineConfig([
{ files: ["**/*.{js,mjs,cjs}"], plugins: { js }, extends: ["js/recommended"], languageOptions: { globals: globals.node } },
{ files: ["**/*.js"], languageOptions: { sourceType: "commonjs" } },
]);
Loading
Loading