Skip to content

Commit 4c00111

Browse files
committed
Update requirements checking.
1 parent a77df26 commit 4c00111

File tree

3 files changed

+3
-81
lines changed

3 files changed

+3
-81
lines changed

.circleci/config.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,7 @@ jobs:
6868
name: Install dependencies and Check compatibility
6969
command: |
7070
if [ "$REQUIREMENTS_CHANGED" == "true" ]; then
71-
sudo apt-get update
72-
sudo apt-get install -y jq curl
73-
./scripts/check_compatibility.sh << parameters.python_version >>
71+
python -m pip install ".[dev,cli]" --dry-run --python-version --no-deps << parameters.python.version >>
7472
else
7573
echo "Skipping compatibility checks..."
7674
fi

scripts/check_compatibility.sh

Lines changed: 0 additions & 76 deletions
This file was deleted.

scripts/check_requirements_changes.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/bash
22

33
# Check if requirements files have changed in the last commit
4-
if git diff --name-only HEAD~1 | grep -E 'requirements/prod.txt|requirements/dev.txt'; then
5-
echo "Requirements files have changed. Running compatibility checks..."
4+
if git diff --name-only HEAD~1 | grep -E 'pyproject.toml'; then
5+
echo "Requirements files may have changed. Running compatibility checks..."
66
echo 'export REQUIREMENTS_CHANGED="true"' >> $BASH_ENV
77
else
88
echo "Requirements files have not changed. Skipping compatibility checks..."

0 commit comments

Comments
 (0)