Giter Site home page Giter Site logo

python-unittest-actions's Introduction

Django CI

Example project with Django unit tests and GitHub actions

This web app should have two pages,

But it looks like the home page message is wrong, and the math is not correct either.

Fortunately, there are some tests that can help identify problems, or verify things are working.

Can you fix the code?

Running the app

Fork this repository and clone it to your computer.

Install dependencies pip install -r requirements.txt (optionally create a virtual environment first)
Run the app with python manage.py runserver

Running the tests locally

python manage.py test

GitHub Actions

These are tasks that are performed when an event happens at GitHub. The Actions for this repository are defined in the .github/worklows/django.yml file. You don't need to understand every detail, but have a look at this file, what do you notice?

Your tasks

The tests are correct. They are failing because there are bugs in the code.

  1. Create a new branch
  2. Fix one of the problems, test by running the app and by running the tests on your computer
  3. Push your branch to GitHub and create a pull request
  4. Observe output from Actions in the pull request
  5. In the same branch, fix the other problem, test by running the app and by running the tests on your computer
  6. Push your branch to GitHub
  7. Observe output from Actions in the pull request

python-unittest-actions's People

Contributors

claraj avatar dependabot[bot] avatar

Watchers

 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.