From 0b9a668233c0efa503b80abae3f49e8bca38b9f8 Mon Sep 17 00:00:00 2001 From: duyanhehe <duyanhex@gmail.com> Date: Sat, 26 Apr 2025 21:18:56 +0700 Subject: [PATCH] delete unnecessary file --- .gitlab-ci.yml | 53 -------------------------------------------------- 1 file changed, 53 deletions(-) delete mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index f16b68d..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,53 +0,0 @@ -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 -- GitLab