mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-16 12:55:50 +00:00
resolve install problem 3
This commit is contained in:
parent
3dd52fc628
commit
2a04ce0f79
1 changed files with 14 additions and 5 deletions
19
.github/workflows/pipeline.yml
vendored
19
.github/workflows/pipeline.yml
vendored
|
@ -17,7 +17,7 @@ jobs:
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.10'
|
python-version: '3.10'
|
||||||
cache: 'pip' # Enable pip caching
|
# Removed pip caching since requirements.txt is not present
|
||||||
|
|
||||||
- name: Install system dependencies
|
- name: Install system dependencies
|
||||||
run: |
|
run: |
|
||||||
|
@ -29,13 +29,22 @@ jobs:
|
||||||
gcc \
|
gcc \
|
||||||
make
|
make
|
||||||
|
|
||||||
|
- name: Create requirements file
|
||||||
|
run: |
|
||||||
|
cat > requirements.txt << EOF
|
||||||
|
cython>=3.0.11
|
||||||
|
pyyaml==5.4.1
|
||||||
|
docker-compose
|
||||||
|
EOF
|
||||||
|
|
||||||
- name: Install Python dependencies
|
- name: Install Python dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip setuptools wheel
|
python -m pip install --upgrade pip setuptools wheel
|
||||||
pip install --no-cache-dir cython
|
pip install -r requirements.txt
|
||||||
# Install PyYAML with specific build flags to avoid Cython issues
|
# Reinstall PyYAML with specific build flags if the initial installation fails
|
||||||
PYTHONPATH='' CFLAGS="-O2" pip install --no-cache-dir --no-build-isolation pyyaml==5.4.1
|
if ! python -c "import yaml"; then
|
||||||
pip install --no-cache-dir docker-compose
|
PYTHONPATH='' CFLAGS="-O2" pip install --no-cache-dir --no-build-isolation pyyaml==5.4.1
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Check Docker Compose version
|
- name: Check Docker Compose version
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in a new issue