Schedule Python Scripts with GitHub Actions FOR FREE | Python Automation

  Рет қаралды 54,367

Patrick Loeber

Patrick Loeber

Күн бұрын

Learn how to schedule Python scripts with GitHub Actions FOR FREE in this Python Automation tutorial!
💻Starter files: github.com/patrickloeber/pyth...
🎦 Cron job Tutorial: • How To Schedule Python...
✅ Write cleaner code with Sourcery, instant refactoring suggestions in VS Code & PyCharm: sourcery.ai/?... *
Get my Free NumPy Handbook:
www.python-engineer.com/numpy...
⭐ Join Our Discord : / discord
📓 ML Notebooks available on Patreon:
/ patrickloeber
If you enjoyed this video, please subscribe to the channel:
▶️ : / @patloeber
~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~
🖥️ Website: www.python-engineer.com
🐦 Twitter - / patloeber
✉️ Newsletter - www.python-engineer.com/newsl...
📸 Instagram - / patloeber
🦾 Discord: / discord
▶️ Subscribe: / @patloeber
~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~
🅿 Patreon - / patrickloeber
#Python
Timeline:
00:00 - Introduction
01:08 - GitHub Actions
02:01 - Starter Template
06:38 - Set Up Instructions
11:41 - GitHub Secrets
----------------------------------------------------------------------------------------------------------
* This is an affiliate link. By clicking on it you will not have any additional costs, instead you will support me and my project. Thank you so much for the support! 🙏

Пікірлер: 55
@Mutual_Information
@Mutual_Information Жыл бұрын
Wow I only recognized GitHub actions as a CD tool. Did not realize it can be on any automated basis. That changes things. Very cool.
@dipanshgirdhar8817
@dipanshgirdhar8817 Жыл бұрын
I just love this tutorial. Perfectly paced and almost covers everything. Thanks. :)
@2544982009
@2544982009 Жыл бұрын
I never thought I could use github actions for other tasks different from CI/CD this video was the spark for me to dig deeper into github actions, if you could do more videos on this topic it will be great. Thanks a lot.
@bozok1903
@bozok1903 Жыл бұрын
This is a wonderful tutorial. Thank you very much. It's really going to be incredibly helpful to me.
@ewwitsantonio
@ewwitsantonio Жыл бұрын
Super helpful demonstration! Thanks so much!
@techxest3791
@techxest3791 Жыл бұрын
Thank you for such a useful and informative tutorial. Super helpful!
@tech_savvy_guy
@tech_savvy_guy Жыл бұрын
This video is worthy of a billion views! Really helpful.
@danmelos
@danmelos Ай бұрын
Masterpiece. Thank you!
@letstry5283
@letstry5283 Жыл бұрын
Wow. This was really helpful, thanks a lot! I didn't know we could also use Python for GitHub actions, although I am more of a JS guy (I've made a few workflows in the past with it but config was hell)
@mapneto
@mapneto Жыл бұрын
great tutorial! thank you a lot to share your knowledge 👏👏
@kevinz1991
@kevinz1991 Жыл бұрын
Fantastic video! Thank you!
@acloudsecninja
@acloudsecninja 4 ай бұрын
Great Tutorial!
@vinaykrishna9122
@vinaykrishna9122 Жыл бұрын
interesting video and clear cut simple explanation
@carlitosperez7306
@carlitosperez7306 7 ай бұрын
In case someone had same issues as me: 1. job not running: In the video he shows that the job is scheduled every 2 hours but in the repository code is actually set for every Monday, change code to run more often if you want to test it 2. error 128, saying can't connect to repo when doing the build: Go to "Settings" > "Actions" > "General" > and in "Workflow permissions" change to > "Read and write permissions" > then "Save" Hopefully it will work now, it does for me :)
@manoharali455
@manoharali455 Жыл бұрын
Very interesting 👌
@Tennisbull-match-statistics
@Tennisbull-match-statistics Жыл бұрын
Very cool. I think I’ll use it to purge the cloudflare cache via Api
@shivampatil_5606
@shivampatil_5606 Жыл бұрын
Really very nice and helpful I never thought we could run python scripts too 😅
@patloeber
@patloeber Жыл бұрын
Glad I could help!
@AiPhile
@AiPhile Жыл бұрын
Thank you so much ❤️
@infinity5503
@infinity5503 Жыл бұрын
With this new Github action discovery. 😂 I’m going to put my FTP server into casket for good which i used to run python code. Damn my manager was struggling with manual updating code in ftp server now i could just directly execute code here. ❤❤❤❤ This tutorial definitely made my day ❤❤
@alexandergarzo9415
@alexandergarzo9415 Жыл бұрын
This is fire!
@sergiimarchuk6405
@sergiimarchuk6405 Жыл бұрын
Thank you.
@nates3361
@nates3361 Жыл бұрын
Great tutorial. I am going to use it to automatically update some dashboards I have. Are you using a custom theme for your terminal? It looks nice
@patloeber
@patloeber Жыл бұрын
iTerm2 with Dracula theme!
@eyekey346
@eyekey346 Жыл бұрын
Can you make a video about containerized scripts on remote servers? Specifically uploading them to servers and then updating them? Thanks!
@lazymutt
@lazymutt Жыл бұрын
What a great tutorial! I couldn't seem to find your tweet-scraper repo, though. Is it still available?
@joyjamsocial
@joyjamsocial Жыл бұрын
Legend!
@msc06nkwzoe
@msc06nkwzoe 4 ай бұрын
Thanks a lot for the video!! may i ask a simple question ... how to start running the workflow? I have set up most of the thing according to the video , but it is not running...
@athakur33
@athakur33 Жыл бұрын
Awesome 👍
@patloeber
@patloeber Жыл бұрын
Thanks 🤗
@vsolyomi
@vsolyomi Жыл бұрын
So you run setup py and pip install every time? There's no caching or anything? I'm trying to implement similar thing with docker and dockerized action.
@0xtz_
@0xtz_ Жыл бұрын
Super cool 👌
@patloeber
@patloeber Жыл бұрын
Thank you!
@0xtz_
@0xtz_ Жыл бұрын
@@patloeber now I'm gonna try to automate some email tasks 😂 👌
@patloeber
@patloeber Жыл бұрын
Let me know if it worked!
@0xtz_
@0xtz_ Жыл бұрын
@@patloeber ofc
@tanjt107
@tanjt107 Жыл бұрын
How can I interact with databases with Github actions? Do I need a cloud DB or a local ones also work?
@stubbeee
@stubbeee Жыл бұрын
HI Patrick, thanks for a great tutorial. I was able to replicate everything you showed and I will be using this to run a Python script we use to tag orders in our Shopify site. My one question is around the secrets code in the actual python script. I need to use a secret to connect to the Shopify API and it is very clear to me how this will run when running as a GitHub action but since that secret doesn't exist locally I think it will fail when I am doing local testing. Have you done something like this before? My initial thought was to change the python code a bit to have it look for the secret in a config file held locally (that I don't sync use .git ignore) otherwise read from the environment variable. Any advice you can share here?
@mrblogge1
@mrblogge1 Жыл бұрын
Will you tech encryption and decryption of python3 code
@issekisaji
@issekisaji 7 ай бұрын
Is it possible to run colab notebook?
@cooky123
@cooky123 Жыл бұрын
there's a way to force the execution of the job from Github?
@tomo4294
@tomo4294 Жыл бұрын
Do you have a written tutorial for this?
@nagalakshminkvenkatachalam4644
@nagalakshminkvenkatachalam4644 Жыл бұрын
could you please clarify the query...can we run python script automatically (every 10 minutes) to write data in Google sheets...
@Nawaho
@Nawaho Жыл бұрын
Hey, great stuff, thanks! But can someone explain to me what is the purpose of adding actions secret (SOME_SECRET)?
@champfisk5613
@champfisk5613 Жыл бұрын
So this script is running from the GitHub side and not the local computer?
@gatzsandrofuertesosorio1140
@gatzsandrofuertesosorio1140 11 ай бұрын
Many thanks for your video, I have a question. I had an error and I checked on GitHub Actions that my action ran well until push changes. It says remote: Write access to repository not granted, code 128. In the video you said something about secrets.GITHUB_TOKEN. is this the reason of my error? Thanks in advance,
@lolf390
@lolf390 Жыл бұрын
Can we run selenium headless?
@alexdin1565
@alexdin1565 9 ай бұрын
how we can use multiple github accounts at same computer
@Kurumi.Zaphkiel
@Kurumi.Zaphkiel 11 ай бұрын
My Action.yml doesn't seem to run at all?
@larrykubin5987
@larrykubin5987 Жыл бұрын
👍🐶
@Zaeemtechnical
@Zaeemtechnical Жыл бұрын
We can make free Proxy list that updates every 10 minutes, using actions...
@JohnWick-bb4lt
@JohnWick-bb4lt 6 ай бұрын
wszystko za szybko, nie rozumiem co Ty robisz.
@derewigegaver747
@derewigegaver747 Жыл бұрын
Dein Akzent triggert mich so hart Alter No offense
@chriskathumbi2292
@chriskathumbi2292 Жыл бұрын
Would it be possible to provide input to the actions like passing attributes and methods as arbitrary arguments. eg: in dt.datetime.today() can I relpace 'datetime' or 'today()' with an argument after the period. like: dt.arg.today(), dt.datetime.arg with eval/exec it's possible but very unsafe eval(f"dt.{arg}.today()")
@0xDEAD_Inside
@0xDEAD_Inside Жыл бұрын
You can put your args in a json document in the same repo and read them with python. You can then change the args by commits. But don't store secrets there.
HTTPX Tutorial - A next-generation HTTP client for Python
11:02
Patrick Loeber
Рет қаралды 101 М.
маленький брат прыгает в бассейн
00:15
GL Show Russian
Рет қаралды 4,4 МЛН
How To Choose Ramen Date Night 🍜
00:58
Jojo Sim
Рет қаралды 60 МЛН
6 Tips to write BETTER For Loops in Python
9:19
Patrick Loeber
Рет қаралды 244 М.
Github Actions | Create Cron Schedule | Sending Email
36:38
Very Academy
Рет қаралды 8 М.
Best Platforms to Host Python Apps (for free!!)
9:50
Patrick Loeber
Рет қаралды 100 М.
CI CD наглядные примеры
22:08
Ulbi TV
Рет қаралды 265 М.
How To Setup Github Actions For CI/CD
20:27
ArjanCodes
Рет қаралды 29 М.
How GitHub Actions 10x my productivity
8:18
Beyond Fireship
Рет қаралды 380 М.
Python 101: Learn the 5 Must-Know Concepts
20:00
Tech With Tim
Рет қаралды 1 МЛН
PyScript - Run Python in the Browser! THE END of JavaScript???
8:21
Patrick Loeber
Рет қаралды 359 М.
Functions vs Classes: When to Use Which and Why?
10:49
ArjanCodes
Рет қаралды 137 М.
маленький брат прыгает в бассейн
00:15
GL Show Russian
Рет қаралды 4,4 МЛН