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.
I'll show you how in this GitHub Actions lesson for beginners so that you can use this in your own repository easily. Example repo in the lesson resources.
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.
▬▬🥇 Learning Objectives ▬▬
🚀 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
▬▬ C H A P T E R S ⏰ ▬▬
00:00 Introduction
00:53 Add an action workflow file
04:25 Add a Python file
05:51 Test the GitHub Action
07:56 Add a repository secret
09:11 Use the GitHub secret in Python
11:35 Add environment var to a step
▬▬ 🔗 R E S O U R C E S ▬▬
GitHub repository with sample code → https://github.com/alfredodeza/python...
Minimal Python book → https://www.amazon.com/Minimal-Python...
Free Azure Certification for Students → https://docs.microsoft.com/learn/cert...
Python for Beginners Learn Path → https://docs.microsoft.com/learn/path...
Sur cette page du site, vous pouvez voir la vidéo en ligne Run Python in GitHub Actions durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Alfredo Deza 26 mai 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 9,421 fois et il a aimé 109 téléspectateurs. Bon visionnage!