Giter Club home page Giter Club logo

cicd_assignment's Introduction

CICD Assignment

Introduction

  • This repository contains a data folder containing the datasets for training and testing.
  • It contains a train.py file for training a model and saving it and a test.py for testing the model.
  • It contains a requirements.txt listing the python dependencies.
  • It also contains a workflow file at .github/workflows/score.yml which trains the model in train.py and then tests it using test.py and succeeds only if the score is above 0.50.
  • You can view the pull request for an example.

Steps

  • Fork this repository
  • Create an account in docker hub (or any other registry of your choice)
  • Create a Dockerfile which trains the model in the building phase and executes test.py when the container is run
  • Create 2 github action workflows triggered on pull request
    • First one: creates a docker image and pushes it to a registry
    • Second one: pulls the docker image from the registry and runs it. It succeeds only if the score returned is greater than 0.50
  • Have 3 separate pull requests from different branches covering the following 3 scenarios
    • Both of your actions fail
    • One of your actions fail
    • Both of your actions pass
  • Note: You should change only the train.py file
  • Note: The second action should only run if the first one passes
  • Names of the actions: Train(first one) and Test(second one)

cicd_assignment's People

Contributors

pulavarthi avatar lokeshmohanty avatar

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.