Skip to content
Snippets Groups Projects
Commit 0b9a6682 authored by duyanhehe's avatar duyanhehe
Browse files

delete unnecessary file

parent 541bb89e
No related branches found
No related tags found
No related merge requests found
Pipeline #9122 failed
stages:
- install
- test
- deploy
variables:
VENV_DIR: .venv
PIP_CACHE_DIR: $CI_PROJECT_DIR/.pip_cache
cache:
key: dependencies-cache
paths:
- $PIP_CACHE_DIR
policy: pull-push
before_script:
- Set-ExecutionPolicy Bypass -Scope Process -Force
- if (-Not (Test-Path "C:\ProgramData\chocolatey\bin\choco.exe")) {
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072;
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
}
- refreshenv
- if (-Not (Get-Command python -ErrorAction SilentlyContinue)) { choco install python --version=3.11.5 -y }
- refreshenv
- python -m venv .venv
- source .venv/Scripts/activate
- pip install --upgrade pip
- pip install -r requirements.txt --cache-dir $PIP_CACHE_DIR
install_dependencies:
stage: install
script:
- echo "Dependencies installed successfully."
timeout: 20m
run_tests:
stage: test
script:
- pytest --maxfail=5 --disable-warnings
artifacts:
when: always
paths:
- tests/reports/
reports:
junit: tests/reports/junit.xml
deploy:
stage: deploy
script:
- echo "Deploying application..."
- python run_app.py
only:
- main
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment