github

Github Actions – Retrieving Dependencies from Cache

Github Actions – Retrieving Dependencies from Cache Question: I have set up a Github Action to launch a python project in my own repo. The project needs external libraries and it executes efficiently if, in every run, I install them. I tried however to cache them after the installation and to retrieve them from the …

Total answers: 2

What to tests in ci run vs pytest, and why

What to tests in ci run vs pytest, and why Question: I have a python repo in github. If I understood it correctly there are mainly two ways in which tests can be automated: using run in a ci.yml file using test_… files under a folder called test (at root level) and then execute them …

Total answers: 1

Problem installing a Python program from GitHub

Problem installing a Python program from GitHub Question: I am trying to install the MQTT simulator. I have python v3.3.10 installed in my computer. I followed this video between 1:48 and 5.43, so now I have a folder in my desktop called python_project, inside of which there is a folder called venv. I have downloaded …

Total answers: 1

Error pushing a large commit (containing PySide6 package) to GitHub

Error pushing a large commit (containing PySide6 package) to GitHub Question: I have a PySide6 project that I am currently working on it, when I tried to add a source control to the project, I realized that the PySide6 package is too large (+450 MB) to be pushed to GitHub. The error: File .venv/Lib/site-packages/PySide6/Qt6WebEngineCore.dll is …

Total answers: 1

How to protect python script from editing

How to protect python script from editing Question: I am building a python script for my co-workers to use. what I want for my co-workers is to be able to run and view the script but not to edit the script when they download it from GitHub. I explored a few options like in this …

Total answers: 1

How can I make sure that my github action workflow is working as intended?

How can I make sure that my github action workflow is working as intended? Question: I have a simple python script which classifies balls according to their type. The script is working as intended on my local machine. How can I make sure that the git action workflow is running as well? I need to …

Total answers: 1

PyGithub: How to create a branch off the master and check out?

PyGithub: How to create a branch off the master and check out? Question: How can I create a new branch off the master and check out the branch? The documentation at https://pygithub.readthedocs.io/en/latest/ does not show how to do this. Thanks a lot!! Asked By: Kay || Source Answers: I was able to do this with …

Total answers: 1

Getting 422 error while trying to use Coveralls with GitHub actions

Getting 422 error while trying to use Coveralls with GitHub actions Question: I’m trying to set up Coveralls to work with GitHub Actions for a Python project, and although I’ve reviewed the documentation multiple times and followed all the instructions to the best of my understanding, I’m still facing the following error: Bad Response 422 …

Total answers: 1

How to fetch an orphaned commit?

How to fetch an orphaned commit? Question: tl;dr: I have a repository cloned but cannot see an orphaned commit locally. How can I get that commit if it did not come with the repo? Details: I am trying to get the contents of a specific file on a specific commit using gitpython as below (using …

Total answers: 1