Skip to content

Commit

Permalink
Revert "feat: install all simultaneously"
Browse files Browse the repository at this point in the history
This reverts commit 5209a09.
  • Loading branch information
ArzelaAscoIi committed Jul 30, 2024
1 parent 5209a09 commit ed19204
Showing 1 changed file with 6 additions and 25 deletions.
31 changes: 6 additions & 25 deletions .github/workflows/compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ jobs:
test-integrations:
name: Install all packages
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand All @@ -15,34 +16,14 @@ jobs:
with:
python-version: '3.8'

- name: Create a combined requirements file
- name: Install dependencies
run: |
echo "Creating combined requirements file"
touch combined-requirements.txt
for dir in integrations/*; do
if [ -f "$dir/pyproject.toml" ]; then
echo "Processing $dir/pyproject.toml"
pip install tomli
python -c "
import tomli
with open('$dir/pyproject.toml', 'rb') as f:
data = tomli.load(f)
if 'dependencies' in data['project']:
deps = data['project']['dependencies']
with open('combined-requirements.txt', 'a') as req_file:
for dep in deps:
req_file.write(dep + '\n')
"
fi
done
- name: Display combined requirements
run: cat combined-requirements.txt

- name: Install dependencies
run: |
echo "Installing combined dependencies"
pip install -r combined-requirements.txt
echo "Installing $dir"
pip install -e $dir
fi
done
- name: Verify installations
run: |
Expand Down

0 comments on commit ed19204

Please sign in to comment.