Skip to content

Commit 963d0a0

Browse files
committed
chore: add workflow to find the python dependencies in repo
1 parent 24c466a commit 963d0a0

File tree

1 file changed

+8
-18
lines changed

1 file changed

+8
-18
lines changed

.github/workflows/check_dependencies.yml

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,33 +9,23 @@ defaults:
99

1010
jobs:
1111
check_dependencies:
12-
name: Check Python Dependencies
1312
runs-on: ubuntu-latest
14-
13+
1514
steps:
16-
- name: Checkout repository
15+
- name: Checkout Repository
1716
uses: actions/checkout@v3
1817

1918
- name: Set up Python
2019
uses: actions/setup-python@v4
2120
with:
22-
python-version: '3.8'
21+
python-version: '3.8'
2322

24-
- name: Install dependencies
23+
- name: Install Dependencies
2524
run: |
2625
python -m pip install --upgrade pip
27-
python -m pip install git+https://github.com/openedx/repo-tools.git@0.8.6#egg=edx-repo-tools[find_dependencies]
28-
29-
- name: Run dependency check
30-
run: |
31-
python https://github.com/openedx/repo-tools/blob/master/edx_repo_tools/find_dependencies/find_dependencies.py
26+
pip install -r requirements.txt
3227
33-
- name: Check if any dependency belongs to openedx
28+
- name: List Installed Packages
3429
run: |
35-
if grep -q openedx /tmp/unpack_reqs/repo_urls.txt; then
36-
echo "A dependency belongs to openedx organization"
37-
exit 0 # Pass the check
38-
else
39-
echo "No dependency belongs to openedx organization"
40-
exit 1 # Fail the check
41-
fi
30+
source .venv/bin/activate # Activate the virtual environment
31+
pip list --format=columns # List installed packages in columns format

0 commit comments

Comments
 (0)