mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-16 04:45:49 +00:00
resolve install problem 3
This commit is contained in:
parent
2a04ce0f79
commit
182096a3fc
1 changed files with 12 additions and 10 deletions
22
.github/workflows/pipeline.yml
vendored
22
.github/workflows/pipeline.yml
vendored
|
@ -17,7 +17,6 @@ jobs:
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.10'
|
python-version: '3.10'
|
||||||
# Removed pip caching since requirements.txt is not present
|
|
||||||
|
|
||||||
- name: Install system dependencies
|
- name: Install system dependencies
|
||||||
run: |
|
run: |
|
||||||
|
@ -27,7 +26,8 @@ jobs:
|
||||||
libffi-dev \
|
libffi-dev \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
gcc \
|
gcc \
|
||||||
make
|
make \
|
||||||
|
libyaml-dev # Ajouté pour PyYAML
|
||||||
|
|
||||||
- name: Create requirements file
|
- name: Create requirements file
|
||||||
run: |
|
run: |
|
||||||
|
@ -40,11 +40,13 @@ jobs:
|
||||||
- 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 -r requirements.txt
|
pip install -r requirements.txt || \
|
||||||
# Reinstall PyYAML with specific build flags if the initial installation fails
|
(echo "⚠️ Première installation échouée, tentative avec flags spécifiques..." && \
|
||||||
if ! python -c "import yaml"; then
|
CFLAGS="-O2" pip install --no-cache-dir --no-build-isolation pyyaml==5.4.1)
|
||||||
PYTHONPATH='' CFLAGS="-O2" pip install --no-cache-dir --no-build-isolation pyyaml==5.4.1
|
|
||||||
fi
|
- name: Verify PyYAML installation
|
||||||
|
run: |
|
||||||
|
python -c "import yaml; print('PyYAML version:', yaml.__version__)"
|
||||||
|
|
||||||
- name: Check Docker Compose version
|
- name: Check Docker Compose version
|
||||||
run: |
|
run: |
|
||||||
|
@ -53,14 +55,14 @@ jobs:
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
echo "Running tests..."
|
echo "Running tests..."
|
||||||
# Add your test commands here
|
# Ajoute ici tes commandes de test
|
||||||
|
|
||||||
- name: Deploy application
|
- name: Deploy application
|
||||||
run: |
|
run: |
|
||||||
echo "Deploying application..."
|
echo "Deploying application..."
|
||||||
# Add your deployment commands here
|
# Ajoute ici tes commandes de déploiement
|
||||||
|
|
||||||
- name: Monitoring setup
|
- name: Monitoring setup
|
||||||
run: |
|
run: |
|
||||||
echo "Setting up monitoring..."
|
echo "Setting up monitoring..."
|
||||||
# Add your monitoring configuration here
|
# Ajoute ici ta configuration de monitoring
|
||||||
|
|
Loading…
Reference in a new issue