- 📫 How to reach me [email protected]
tom-rh / 4a_ilc_projet_ci_cd Goto Github PK
View Code? Open in Web Editor NEWProjet réalisé dans le cadre du module CI/CD.
Projet réalisé dans le cadre du module CI/CD.
Dans https://github.com/tom-rh/4A_ILC_PROJET_CI_CD/blob/main/.github/workflows/build_application.yml
Il vous manque une étape pour que cette action soit pertinente.
# Install Flask
- name: Install flask
run: pip install flask
Ici vous ne testez que le fait que flask
puisse s'installer dans le runner GitHub. Pour tester la syntaxe du code, il vous faut une étape supplémentaire qui exécute le fichier api.py
sans lancer le serveur, comme nous l'avions fait dans le TD3 et le TD4 dont la correction est sur le dépôt module_ci-cd :
if __name__ == '__main__':
if len(sys.argv) > 1:
if sys.argv[1] == "check_syntax":
print("Build [ OK ]")
exit(0)
else:
print("Passed argument not supported ! Supported argument : check_syntax")
exit(1)
app.run(debug=True)
Ainsi vous auriez pu ainsi tester la syntax de votre fichier api.py
en ajoutant l'étape suivante dans votre Github Action :
jobs:
...
steps:
...
- name: [ API ] Check syntax
run: |
python api.py check_syntax
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.