Skip to content

Commit

Permalink
Merge pull request #1 from ptrvsrg/dev
Browse files Browse the repository at this point in the history
v0.0.0
  • Loading branch information
ptrvsrg committed Jun 15, 2024
2 parents 6956c7d + efd2974 commit a8b1a5b
Show file tree
Hide file tree
Showing 97 changed files with 5,507 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
MAJOR_VERSION=0
MINOR_VERSION=0
PATCH_VERSION=0

LOCALE_DIR=locales
DETECT_MODEL_PATH=models/yolov8n.pt
PREDICT_MODEL_PATH=models/yolov8n-hotdog-cls.pt
MIGRATIONS_DIR=migrations

TELEGRAM_TOKEN=
OWNER_USERNAME=
WEBHOOK_URL=

POSTGRES_HOST=localhost
POSTGRES_PORT=5432
POSTGRES_USER=user
POSTGRES_PASSWORD=password
POSTGRES_DB=hotdog_or_not_bot

REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_USER=default
REDIS_PASSWORD=password
REDIS_DB=0

DEBUG=false
PORT=8080
26 changes: 26 additions & 0 deletions .github/workflows/build_python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build Python application
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Cache pip dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
24 changes: 24 additions & 0 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Create Release
on:
push:
tags:
- '*'
jobs:
release:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
Release created automatically by Github Action
draft: false
prerelease: false
Loading

0 comments on commit a8b1a5b

Please sign in to comment.