From 22341c021ae549b4d859328b9614397bb2bece5a Mon Sep 17 00:00:00 2001 From: Eugen Date: Wed, 15 Apr 2026 02:50:40 +0200 Subject: [PATCH 1/2] CircleCI Commit --- .circleci/config.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..2cc1ed7 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,34 @@ +# This config was automatically generated from your source code +# Stacks detected: deps:python:. +version: 2.1 +orbs: + python: circleci/python@2 +jobs: + test-python: + # Install dependencies and run tests + docker: + - image: cimg/python:3.8-node + steps: + - checkout + - python/install-packages + - run: + name: Run tests + command: pytest --junitxml=junit.xml || ((($? == 5)) && echo 'Did not find any tests to run.') + - store_test_results: + path: junit.xml + deploy: + # This is an example deploy job, not actually used by the workflow + docker: + - image: cimg/base:stable + steps: + # Replace this with steps to deploy to users + - run: + name: deploy + command: '#e.g. ./deploy.sh' +workflows: + build-and-test: + jobs: + - test-python + # - deploy: + # requires: + # - test-python From 94625a06342ee376415db7e4fa6c5944fa67935c Mon Sep 17 00:00:00 2001 From: "circleci-app[bot]" <127350680+circleci-app[bot]@users.noreply.github.com> Date: Wed, 15 Apr 2026 00:58:20 +0000 Subject: [PATCH 2/2] CircleCI Commit --- .circleci/config.yml | 65 ++++++++++++++++++++++++++++---------------- 1 file changed, 41 insertions(+), 24 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2cc1ed7..926a5c8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,34 +1,51 @@ -# This config was automatically generated from your source code -# Stacks detected: deps:python:. version: 2.1 -orbs: - python: circleci/python@2 + jobs: - test-python: - # Install dependencies and run tests + build-and-smoke-test: docker: - - image: cimg/python:3.8-node + - image: cimg/python:3.12 steps: - checkout - - python/install-packages + - run: - name: Run tests - command: pytest --junitxml=junit.xml || ((($? == 5)) && echo 'Did not find any tests to run.') - - store_test_results: - path: junit.xml - deploy: - # This is an example deploy job, not actually used by the workflow - docker: - - image: cimg/base:stable + name: Install system packages + command: | + sudo apt-get update + sudo apt-get install -y ffmpeg + + - run: + name: Create venv and install deps + command: | + python -m venv venv + . venv/bin/activate + pip install --upgrade pip + pip install -r requirements.txt + + - run: + name: Smoke test app import + command: | + . venv/bin/activate + python -c "from app import app; print(app.url_map)" + + - run: + name: Smoke test yt-dlp and ffmpeg + command: | + . venv/bin/activate + yt-dlp --version + ffmpeg -version + + docker-build: + machine: + image: ubuntu-2204:current steps: - # Replace this with steps to deploy to users + - checkout - run: - name: deploy - command: '#e.g. ./deploy.sh' + name: Build Docker image + command: | + docker build -t reclip . + workflows: - build-and-test: + build: jobs: - - test-python - # - deploy: - # requires: - # - test-python + - build-and-smoke-test + - docker-build \ No newline at end of file