chore: add workflow to find the python dependencies in repo #19
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check Python Dependencies | |
on: | |
pull_request: | |
defaults: | |
run: | |
shell: bash # strict bash | |
jobs: | |
check_dependencies: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8' | |
- name: Create Virtual Environment | |
run: python -m venv .venv | |
- name: Install Dependencies | |
run: | | |
source .venv/bin/activate # Activate the virtual environment | |
pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: List Installed Packages | |
run: | | |
source .venv/bin/activate # Activate the virtual environment | |
pip list --format=columns # List installed packages in columns format |