Skip to content

Commit 30c6893

Browse files
authored
0.1.0 🚀
1 parent ae83a99 commit 30c6893

26 files changed

Lines changed: 1911 additions & 0 deletions
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Code Style
2+
description: Check code style
3+
4+
runs:
5+
using: "composite"
6+
steps:
7+
- name: Ruff
8+
shell: bash
9+
run: |
10+
ruff format --check
11+
ruff check
12+
13+
- name: MyPy
14+
shell: bash
15+
run: mypy ./
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Deploy
2+
description: Publish package on PyPI
3+
inputs:
4+
version:
5+
description: "Package version."
6+
required: true
7+
8+
runs:
9+
using: "composite"
10+
steps:
11+
- name: Publish
12+
shell: bash
13+
run: |
14+
poetry version ${{ inputs.version }}
15+
poetry publish --build
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Environment
2+
description: Set up the environment
3+
inputs:
4+
python-version:
5+
description: "Python version."
6+
required: false
7+
default: "3.12"
8+
9+
runs:
10+
using: "composite"
11+
steps:
12+
- name: Install Python
13+
uses: actions/setup-python@v5
14+
with:
15+
python-version: ${{ inputs.python-version }}
16+
architecture: "x64"
17+
18+
- name: Install Poetry & Dependencies
19+
shell: bash
20+
run: |
21+
pip install --upgrade pip
22+
pip install poetry
23+
poetry config installer.modern-installation true
24+
poetry config virtualenvs.create false
25+
poetry check
26+
poetry install --compile
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: Tests
2+
description: Run all tests
3+
4+
runs:
5+
using: "composite"
6+
steps:
7+
- name: Pytest
8+
shell: bash
9+
run: pytest

‎.github/dependabot.yml‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
version: 2
2+
3+
updates:
4+
- package-ecosystem: "pip"
5+
directory: "/"
6+
target-branch: "dev"
7+
schedule:
8+
interval: "weekly"
9+
groups:
10+
safe:
11+
patterns:
12+
- "*"
13+
update-types:
14+
- "minor"
15+
- "patch"
16+
major:
17+
patterns:
18+
- "*"
19+
update-types:
20+
- "major"

‎.github/workflows/cd.yml‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: CD
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
cd:
9+
name: Continuous Delivery
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Run checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Set up environment
17+
uses: ./.github/actions/environment
18+
19+
- name: Deploy
20+
uses: ./.github/actions/deploy
21+
with:
22+
version: ${{ github.event.release.tag_name }}
23+
env:
24+
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_API_TOKEN }}

‎.github/workflows/ci.yml‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- dev
7+
- prod
8+
pull_request:
9+
10+
jobs:
11+
ci:
12+
strategy:
13+
matrix:
14+
python-version: ["3.12"]
15+
16+
name: Python ${{ matrix.python-version }}
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Run checkout
21+
uses: actions/checkout@v4
22+
23+
- name: Set up environment
24+
uses: ./.github/actions/environment
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
28+
- name: Check code style
29+
uses: ./.github/actions/code-style
30+
31+
- name: Tests
32+
uses: ./.github/actions/tests

0 commit comments

Comments
 (0)