Skip to content

Commit

Permalink
Update: v0.9.0
Browse files Browse the repository at this point in the history
This took quite some time to complete! Kumiko is officially stable and now uses asyncpg as the core SQL driver. Along with that, the long-awaited EventsLog and Prefix modules have been implemented and are now working. Kumiko is nearly done with v0 development, and all there is left is to add a couple more features (tags and the economy system) and finally, this project will be fully deployed to production. For more info, please consult the changelog. ~ Noelle ❤️
  • Loading branch information
No767 authored Jul 11, 2023
2 parents 30b2e82 + 2990209 commit 0fd2796
Show file tree
Hide file tree
Showing 131 changed files with 5,841 additions and 2,665 deletions.
46 changes: 0 additions & 46 deletions .env-dev-example

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
uses: actions/checkout@v3
- name: Set up Python 3.11
id: setup-python
uses: actions/setup-python@v4.5.0
uses: actions/setup-python@v4.6.1
with:
python-version: '3.11'
- name: Set up Poetry
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ jobs:
images: |
ghcr.io/no767/kumiko
tags: |
type=semver,pattern={{raw}},suffix=-bullseye
type=semver,pattern={{version}},suffix=-bullseye
type=semver,pattern={{major}}.{{minor}},suffix=-bullseye
type=semver,pattern={{major}},suffix=-bullseye
type=semver,pattern={{raw}},suffix=-bookworm
type=semver,pattern={{version}},suffix=-bookworm
type=semver,pattern={{major}}.{{minor}},suffix=-bookworm
type=semver,pattern={{major}},suffix=-bookworm
type=semver,pattern={{raw}}
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=edge,branch=dev
type=edge,branch=dev,suffix=-bullseye
type=edge,branch=dev,suffix=-bookworm
- name: Setup Docker Buildx
id: buildx
Expand All @@ -56,7 +56,7 @@ jobs:
restore-keys: |
${{ runner.os }}-buildx-debian-ghcr-
- name: Build and push
uses: docker/build-push-action@v4.0.0
uses: docker/build-push-action@v4.1.1
with:
context: .
file: ./Docker/Dockerfile
Expand Down Expand Up @@ -84,16 +84,16 @@ jobs:
images: |
no767/kumiko
tags: |
type=semver,pattern={{raw}},suffix=-bullseye
type=semver,pattern={{version}},suffix=-bullseye
type=semver,pattern={{major}}.{{minor}},suffix=-bullseye
type=semver,pattern={{major}},suffix=-bullseye
type=semver,pattern={{raw}},suffix=-bookworm
type=semver,pattern={{version}},suffix=-bookworm
type=semver,pattern={{major}}.{{minor}},suffix=-bookworm
type=semver,pattern={{major}},suffix=-bookworm
type=semver,pattern={{raw}}
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=edge,branch=dev
type=edge,branch=dev,suffix=-bullseye
type=edge,branch=dev,suffix=-bookworm
- name: Setup Docker Buildx
id: buildx
Expand All @@ -116,7 +116,7 @@ jobs:
${{ runner.os }}-buildx-debian-hub-
- name: Build and push
uses: docker/build-push-action@v4.0.0
uses: docker/build-push-action@v4.1.1
with:
context: .
file: ./Docker/Dockerfile
Expand Down
53 changes: 29 additions & 24 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,37 +8,42 @@ on:
branches:
- dev

env:
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/postgres
# env:
# DATABASE_URL: postgresql://postgres:postgres@localhost:5432/postgres

jobs:
Analyze:
runs-on: ubuntu-latest

services:
postgres:
image: postgres:15
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
# services:
# postgres:
# image: postgres:15
# env:
# POSTGRES_USER: postgres
# POSTGRES_PASSWORD: postgres
# POSTGRES_DB: postgres
# ports:
# - 5432:5432
# options: >-
# --health-cmd pg_isready
# --health-interval 10s
# --health-timeout 5s
# --health-retries 5

strategy:
fail-fast: false
matrix:
version: [3.8, 3.9, '3.10', '3.11']

steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Set up Python 3.11
- name: Set up Python ${{ matrix.version }}
id: setup-python
uses: actions/setup-python@v4.5.0
uses: actions/setup-python@v4.6.1
with:
python-version: '3.11'
python-version: ${{ matrix.version }}

- name: Set up Poetry
uses: Gr1N/setup-poetry@v8
Expand All @@ -48,17 +53,17 @@ jobs:
uses: actions/[email protected]
with:
path: ~/.cache/pypoetry/virtualenvs
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
key: ${{ runner.os }}-poetry-lint-${{ matrix.version }}-${{ hashFiles('**/poetry.lock') }}

- name: Install Poetry Dependencies
if: steps.cache-poetry.outputs.cache-hit != 'true'
run: |
poetry install --with dev
- name: Generate Prisma Client
run: |
poetry run prisma db push
- name: Run Pyright
run: |
poetry run pyright Bot
- name: Run Ruff
run: |
poetry run ruff Bot
6 changes: 3 additions & 3 deletions .github/workflows/snyk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ jobs:
uses: actions/checkout@v3
- name: Set up Python 3.11
id: setup-python
uses: actions/setup-python@v4.5.0
uses: actions/setup-python@v4.6.1
with:
python-version: '3.11'
- name: Set up Node.js 18
uses: actions/setup-node@v3.6.0
uses: actions/setup-node@v3.7.0
with:
node-version: '18'
node-version: '20'
- name: Install Snyk CLI
run: |
npm install --location=global snyk@latest
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ on:
- dev

env:
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/postgres
REDIS_HOST: localhost
REDIS_PORT: 6379
REDIS_PASSWORD: kumiko
POSTGRES_URI: postgresql://postgres:postgres@localhost:5432/postgres
REDIS_URI: redis://localhost:6379/0


jobs:
Expand Down Expand Up @@ -58,7 +56,7 @@ jobs:
- name: Set up Python
id: setup-python
uses: actions/setup-python@v4.5.0
uses: actions/setup-python@v4.6.1
with:
python-version: ${{ matrix.version }}

Expand Down
Loading

0 comments on commit 0fd2796

Please sign in to comment.