github-actions

Bash script get version from setup.py or from PKG-INFO file and export as environment variable

Bash script get version from setup.py or from PKG-INFO file and export as environment variable Question: I need to get version value from setup.py or from PKG-INFO using bash and extract environment variable with the version value for later use. (Actually I need version value for GitHub Action) from setuptools import setup, find_packages with open("README.md", …

Total answers: 3

How do I automerge dependabot updates (config version 2)?

How do I automerge dependabot updates (config version 2)? Question: Following "Dependabot is moving natively into GitHub!", I had to update my dependabot config files to use version 2 format. My .dependabot/config.yaml did look like: version: 1 update_configs: – package_manager: "python" directory: "/" update_schedule: "live" automerged_updates: – match: dependency_type: "all" update_type: "all" I’ve got the …

Total answers: 3

what are the differences between "python setup.py test" vs "pytest {package}"?

what are the differences between "python setup.py test" vs "pytest {package}"? Question: I am building a continuous integration workflow using GitHub actions. This workflow will be used to run unit tests and test build status. The workflow will be used by a number of different people who have developed python package so I am trying …

Total answers: 2

How do I setup a GitHub action that runs pytest with pipenv?

How do I setup a GitHub action that runs pytest with pipenv? Question: I have a Python project that uses pipenv to run pytest. I want to create a GitHub Action that will run pytest each time I submit a pull request. I’ve tried using the python-app.yml starter workflow. name: Python application on: [push] jobs: …

Total answers: 3

Cloning private github repository within organisation in actions

Cloning private github repository within organisation in actions Question: I have 2 private GitHub repositories (say A and B) in the organization (say ORG). Repository A has repository B in requirements.txt: -e [email protected]:ORG/B.git#egg=B And I have the following workflow for A (in .github/workflows/test.yml): name: Python package on: push jobs: build: runs-on: ubuntu-latest steps: – uses: …

Total answers: 7