Giter Club home page Giter Club logo

4a_ilc_projet_ci_cd's Introduction

Hi 👋, I'm Tom

A student in engineering school and a analyst developer at Euro-Information

Connect with me:

Languages and Tools:

 tom-rh

4a_ilc_projet_ci_cd's People

Contributors

lebourguignon avatar tom-rh avatar

Watchers

 avatar

4a_ilc_projet_ci_cd's Issues

[ BUILD APP ACTION ] Manque une étape

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.