Giter VIP home page Giter VIP logo

python-action's Introduction

Python scripts in GitHub Actions

Learn how to run Python scripts on GitHub Actions! This allows you to handle logic that might be a bit more complex, like setting conditional behavior based on results.

Although GitHub actions is powerful as-is, it can get complicated when consuming inputs from other sources like an HTTP request providing JSON output.

Imagine a scenario where, depending on the JSON output of an HTTP request you have to do an API call. You might be able to do this with a specialized action or workflow, but with Python it might be easier.

The full video is available on YouTube, and the full lesson is also available on the O'Reilly platform

O'Reilly

🎥 Click the image above to access the full lesson on O'Reilly

Table of Contents

Lesson Content

The easiest way of going through the full lesson is using the O'Reilly platform but you can start here as well and on YouTube.

  1. Create a GitHub Action YAML file
  2. Add a Python file
  3. Create a repository secret
  4. Manually trigger your workflow

Learning Objectives

In this lesson you will learn:

  • How to run a Python script with GitHub Actions
  • Create a Python script that can be executed from an Action
  • Consume Action Secrets in the Python script
  • Explore other ways to install dependencies if needed

Useful Resources

python-action's People

Contributors

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