Initial commit

This commit is contained in:
dev
2025-06-12 22:55:04 +02:00
commit ecb089ea79
53 changed files with 3265 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
- package-ecosystem: "" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
+42
View File
@@ -0,0 +1,42 @@
name: Linters
on: [push, pull_request]
env:
FLAKE8_IGNORE: E203,E501,W503
PYLINT_IGNORE: W0718,R0903,R0801
MYPY_IGNORE: unused-awaitable
permissions:
checks: write
contents: write
jobs:
run-linters:
name: Run linters
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install Python dependencies
run: |
pip install isort black flake8 pylint mypy mypy-extensions
pip install -r aperisolve/requirements.txt
- name: Run linters
uses: wearerequired/lint-action@v2
with:
black: true
flake8: true
flake8_args: "--ignore=E203,E501,W503"
pylint: true
pylint_args: "--disable W0511,W0718,R0801,R0903,R0914"
mypy: true
mypy_args: "--disallow-any-generics --disallow-untyped-def --follow-imports skip --ignore-missing-imports --disable-error-code unused-awaitable"
+44
View File
@@ -0,0 +1,44 @@
name: Docker Image CI
on:
push:
tags:
- '*'
jobs:
docker-releases:
runs-on: ubuntu-latest
steps:
- name: Get release version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: downcase username
run: echo "lower_actor=${GITHUB_ACTOR,,}" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker images
uses: docker/build-push-action@v6.9.0
with:
context: ./
push: true
tags: |
ghcr.io/${{ env.lower_actor }}/aperisolve:latest
ghcr.io/${{ env.lower_actor }}/aperisolve:${{ env.RELEASE_VERSION }}