Skip to content
This repository was archived by the owner on Apr 17, 2026. It is now read-only.

Commit c36dae9

Browse files
committed
feat: add encryption, tests, CI/CD and Docker support
1 parent eed4753 commit c36dae9

14 files changed

Lines changed: 491 additions & 212 deletions

.dockerignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.git
2+
.github
3+
__pycache__/
4+
*.pyc
5+
*.pyo
6+
*.pyd
7+
.pytest_cache/
8+
.mypy_cache/
9+
venv/
10+
.venv/
11+
dist/
12+
build/
13+
*.egg-info/

.github/workflows/cd.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CD
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Set up Python
14+
uses: actions/setup-python@v5
15+
with:
16+
python-version: "3.12"
17+
- name: Build package
18+
run: |
19+
python -m pip install --upgrade pip
20+
pip install build
21+
python -m build
22+
- name: Upload build artifacts
23+
uses: actions/upload-artifact@v4
24+
with:
25+
name: dbase-dist
26+
path: dist/*

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: ["**"]
6+
pull_request:
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
python-version: ["3.8", "3.11", "3.12"]
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Set up Python
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install -e .[dev]
25+
- name: Run tests
26+
run: pytest -q

.gitignore

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,7 @@ config.local.json
117117

118118
# next updates
119119
.pre-commit-config.yaml
120-
.dockerignore
121120
config.example.yaml
122-
Dockerfile
123-
.github/
124121
resources/
125-
tests/
126122
dbase/errors.py
127-
dbase/security.py
123+
dbase/security.py

Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM python:3.12-slim
2+
3+
WORKDIR /app
4+
5+
COPY pyproject.toml requirements-dev.txt requirements.txt ./
6+
COPY dbase ./dbase
7+
COPY docs ./docs
8+
COPY LICENSE ./
9+
10+
RUN python -m pip install --upgrade pip && pip install -e .[dev]
11+
12+
CMD ["pytest", "-q"]

0 commit comments

Comments
 (0)