mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-15 20:35:49 +00:00
resolve install problem 3
This commit is contained in:
parent
2bb5ec9967
commit
3dd52fc628
1 changed files with 19 additions and 15 deletions
34
.github/workflows/pipeline.yml
vendored
34
.github/workflows/pipeline.yml
vendored
|
@ -17,37 +17,41 @@ 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
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install system dependencies
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y \
|
||||||
|
python3-dev \
|
||||||
|
libffi-dev \
|
||||||
|
libssl-dev \
|
||||||
|
gcc \
|
||||||
|
make
|
||||||
|
|
||||||
|
- name: Install Python dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip setuptools wheel
|
python -m pip install --upgrade pip setuptools wheel
|
||||||
sudo apt update
|
pip install --no-cache-dir cython
|
||||||
sudo apt install -y python3-dev libffi-dev libssl-dev python3-yaml
|
# Install PyYAML with specific build flags to avoid Cython issues
|
||||||
|
PYTHONPATH='' CFLAGS="-O2" pip install --no-cache-dir --no-build-isolation pyyaml==5.4.1
|
||||||
- name: Install Cython and PyYAML (Fix build)
|
|
||||||
run: |
|
|
||||||
pip install --no-cache-dir cython # Fixes "cython_sources" error
|
|
||||||
pip install --no-cache-dir "pyyaml==5.4.1" # Force compatible pre-built version
|
|
||||||
|
|
||||||
- name: Install Docker Compose
|
|
||||||
run: |
|
|
||||||
pip install --no-cache-dir docker-compose
|
pip install --no-cache-dir docker-compose
|
||||||
|
|
||||||
- name: Check Docker Compose version
|
- name: Check Docker Compose version
|
||||||
run: |
|
run: |
|
||||||
docker-compose version || docker compose version
|
docker compose version || docker-compose version
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
echo "Running tests..."
|
echo "Running tests..."
|
||||||
# Add test commands here
|
# Add your test commands here
|
||||||
|
|
||||||
- name: Deploy application
|
- name: Deploy application
|
||||||
run: |
|
run: |
|
||||||
echo "Deploying application..."
|
echo "Deploying application..."
|
||||||
# Add deployment commands here
|
# Add your deployment commands here
|
||||||
|
|
||||||
- name: Monitoring setup
|
- name: Monitoring setup
|
||||||
run: |
|
run: |
|
||||||
echo "Setting up monitoring..."
|
echo "Setting up monitoring..."
|
||||||
# Add monitoring tools here (e.g., Prometheus, Grafana)
|
# Add your monitoring configuration here
|
||||||
|
|
Loading…
Reference in a new issue