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

Commit bd65390

Browse files
Initial commit
0 parents  commit bd65390

File tree

17 files changed

+2627
-0
lines changed

17 files changed

+2627
-0
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @yepcode/maintainers

.github/workflows/ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- spike/*
7+
pull_request:
8+
branches:
9+
- main
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
12+
cancel-in-progress: true
13+
jobs:
14+
tests:
15+
uses: ./.github/workflows/tests.yml
16+
secrets: inherit

.github/workflows/release.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Release
2+
on:
3+
push:
4+
tags:
5+
- v[0-9]+.[0-9]+.[0-9]+
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
8+
cancel-in-progress: true
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
container:
13+
image: python:3.12-slim
14+
env:
15+
YEPCODE_API_TOKEN: ${{ secrets.TEST_YEPCODE_API_TOKEN }}
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Configure poetry
19+
run: |-
20+
apt update && apt install -y curl gcc g++ && curl -sSL https://install.python-poetry.org | python3 -
21+
export PATH="${PATH}:${HOME}/.local/bin"
22+
echo "${HOME}/.local/bin" >> $GITHUB_PATH
23+
poetry install
24+
- name: Build
25+
run: "poetry build"
26+
- name: Publish
27+
run: "poetry config pypi-token.pypi ${{ secrets.PUBLIC_YEPCODE_PYPI_API_TOKEN }} && poetry publish"
28+
create_release:
29+
needs: deploy
30+
name: Create Release
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/checkout@v4
34+
- name: Create Release
35+
id: create_release
36+
uses: softprops/action-gh-release@v2
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
with:
40+
draft: false
41+
prerelease: false

.github/workflows/tests.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Tests
2+
on:
3+
workflow_call:
4+
workflow_dispatch:
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
container:
9+
image: python:3.12-slim
10+
env:
11+
YEPCODE_API_TOKEN: ${{ secrets.TEST_YEPCODE_API_TOKEN }}
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Configure poetry
15+
run: |-
16+
apt update && apt install -y curl gcc g++ && curl -sSL https://install.python-poetry.org | python3 -
17+
export PATH="${PATH}:${HOME}/.local/bin"
18+
echo "${HOME}/.local/bin" >> $GITHUB_PATH
19+
poetry install
20+
- name: Run pytest
21+
run: "poetry run pytest"
22+
- name: Build
23+
run: "poetry build"

.gitignore

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Python
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
*.so
6+
.Python
7+
build/
8+
develop-eggs/
9+
dist/
10+
downloads/
11+
eggs/
12+
.eggs/
13+
lib/
14+
lib64/
15+
parts/
16+
sdist/
17+
var/
18+
wheels/
19+
*.egg-info/
20+
.installed.cfg
21+
*.egg
22+
23+
# Virtual Environment
24+
venv/
25+
.env
26+
.venv
27+
env.bak/
28+
venv.bak/
29+
30+
# IDE specific files
31+
.idea/
32+
.vscode/
33+
*.swp
34+
*.swo
35+
.DS_Store
36+
*.sublime-workspace
37+
*.sublime-project
38+
39+
# Test coverage
40+
htmlcov/
41+
.tox/
42+
.coverage
43+
.coverage.*
44+
.cache
45+
nosetests.xml
46+
coverage.xml
47+
*.cover
48+
.hypothesis/
49+
.pytest_cache/
50+
51+
# Documentation
52+
docs/_build/
53+
docs/api/
54+
55+
# Logs
56+
*.log
57+
logs/

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 YepCode
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)