Workflow Python
name: Tests
on: [push, pull_request]
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with: { python-version: "3.12" }
- run: pip install -r requirements.txt pytest
- run: python -m pytest -q
Node.js
- uses: actions/setup-node@v4
with: { node-version: 22, cache: npm }
- run: npm ci
- run: npm test
Badge
Secrets : Settings › Secrets and variables › Actions (${{ secrets.NOM }}). Écrire les tests : pytest. Syntaxe YAML : YAML.