Skip to content

talesricr/ci-cd-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Project:

This repo contains a simple Phonebook Management class phonebook.py with it respective unit case test file. The goal is to run the tests everytime a push is made into the project.

How it works:

Checkout the .github/workflows/blank.yml file.

This workflow is triggered on two events: a push or a pull request targeting the "main" branch.

on:
  push:
    branches:
      - main
  pull_request:
    branches:
      - main

Than the job is defined by steps:

    steps:
    - name: Set up Python
      uses: actions/setup-python@v2
      with:
        python-version: 3.8

    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip
        pip install -r requirements.txt  # If have one

After install python and it respective dependencies teste_phonebook.py is executed.

    - name: Run tests
      run: python test_phonebook.py

About

Project realized on my Software Testing course

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages