diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index f16b68d349c1f6781938b74c8fb61e04208cfcb3..0000000000000000000000000000000000000000 --- 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