Coder Social home page Coder Social logo

scaffold's Introduction

Python application test with Github Actions

scaffold

This is a project scaffold for python

This project teaches Continous Integration in the cloud. You start by creating the files listed inside this project. Preferably use the AWS Linux instance because it intetgrates excellently with all AWS services. The advantage of this is that there is no need to save credentials and all. You work inside the cloud and do your deployments there.

python3 -m venv ~/.scaffold

source ~/.scaffold/bin/activate

Here, you make the ability to communicate through ssh with github

ssh-keygen -t rsa and press return a few times.

cat /home/chukwudi/.ssh/id_rsa.pub. Here is just to print the contents of the .pub file which we will copy to github keys.

In sequence, git status to view your file state git add * to add everything un-added so you can commit them. git commit -m "Commit message" to commit locally git push to push to github.

NB: You must use git pull before attempting to edit the repo. git pull will update your local directory with the cloud so you will be editing the newest version. Another altenative if you manage to mess things up will be to reclone the repo.


name: Python application test with Github Actions
on: [push]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Set up Python 3.8
      uses: actions/setup-python@v1
      with:
        python-version: 3.8
    - name: Install dependencies
      run: |
        make install
    - name: Lint with Pylint
      run: |
        make lint
    - name: Test with Pytest
      run: I
        make test
    - name: Format code with Python black
      run: |
        make format
        

scaffold's People

Contributors

chuukwudi 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.