Skip to content

Commit

Permalink
๐Ÿ”– From prod โ†’ Bump version: v1.0.2-prod into main (#3)
Browse files Browse the repository at this point in the history
Automatically created pull request for release v1.0.2-prod into main
branch.
  • Loading branch information
JuanVilla424 authored Nov 16, 2024
2 parents 0c3741a + 083f28b commit c47a79e
Show file tree
Hide file tree
Showing 56 changed files with 411 additions and 1,742 deletions.
6 changes: 1 addition & 5 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
[bumpversion]
current_version = 1.0.8
current_version = 1.0.2
commit = True
tag = False

[bumpversion:file:pyproject.toml]

[bumpversion:file:backend/pyproject.toml]

[bumpversion:file:frontend/package.json]
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
INPUT_DIR=input
OUTPUT_DIR=output
LANGS=["English","Spanish","French","German"]
6 changes: 5 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
* text eol=lf
*.yml text eol=lf
*.yaml text eol=lf
*.py text eol=lf
*.md text eol=lf
*.txt text eol=lf
6 changes: 4 additions & 2 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# These are supported funding model platforms
---
# .github/FUNDING.yml

#github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
# These are supported funding model platforms
github: [JuanVilla424]
#patreon: # Replace with a single Patreon username
#open_collective: # Replace with a single Open Collective username
ko_fi: na0nh
Expand Down
29 changes: 4 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
Expand All @@ -33,7 +33,7 @@ jobs:
- name: Format check with Black
run: |
source venv/bin/activate
black --check scripts/
black --check langding/
- name: Lint with Pylint
run: |
source venv/bin/activate
Expand All @@ -50,31 +50,10 @@ jobs:
continue-on-error: true
- name: Upload coverage to Codecov
if: success()
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml
flags: unittests
name: codecov-umbrella
continue-on-error: true
- name: OSSF Scorecard action
uses: ossf/[email protected]
with:
results_file: scoreboard-results.json
results_format: json
#publish_results: true
continue-on-error: true
- name: List files to verify scoreboard-results.json
run: |
ls -la scoreboard-results.json
cat scoreboard-results.json
continue-on-error: true
- name: Upload Scorecard Results to Security Scorecards API
if: always()
run: |
curl -X POST \
"" \
-H "Authorization: Bearer ${{ secrets.SCORECARD_TOKEN }}" \
-H "Content-Type: application/json" \
-d @scoreboard-results.json
continue-on-error: true
31 changes: 0 additions & 31 deletions .github/workflows/node.yml

This file was deleted.

21 changes: 11 additions & 10 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,31 @@ jobs:
strategy:
matrix:
python-version: ["3.12"]
env:
REPO_NAME: ${{ github.event.repository.name }}
FOLDER_TO_COMPRESS: 'src'
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install backend dependencies
- name: Install dependencies
run: |
python -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install poetry
poetry lock
poetry install
working-directory: backend
- name: Format backend check with Black
- name: Format check with Black
run: |
source venv/bin/activate
black --check app/
black --check tests/
black --check ../scripts/
working-directory: backend
- name: Lint backend with Pylint
black --check "${FOLDER_TO_COMPRESS}"/
env:
REPO_NAME: ${{ env.REPO_NAME }}
FOLDER_TO_COMPRESS: ${{ env.FOLDER_TO_COMPRESS }}
- name: Lint with Pylint
run: |
source venv/bin/activate
pylint $(git ls-files '*.py')
working-directory: backend
14 changes: 5 additions & 9 deletions .github/workflows/release-controller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,16 @@ jobs:
if: startsWith(github.ref, 'refs/tags/v')
env:
REPO_NAME: ${{ github.event.repository.name }}
# set folder repository var \
# (settings->security->secrets-variables->actions->variables->repository) \
# or set default
FOLDER_TO_COMPRESS: 'docs'
FOLDER_TO_COMPRESS: 'src'
steps:
- name: Checkout repository
id: checkout_repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python 3.12
id: setup_python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install dependencies
Expand All @@ -48,9 +45,8 @@ jobs:
run: |
zip -r "${REPO_NAME}-${GITHUB_REF_NAME}.zip" \
{INSTALL,SECURITY,README,ICONS,CONTRIBUTING,CODE_OF_CONDUCT}.md \
requirements.txt .github scripts frontend backend \
pyproject.toml LICENSE
# "${FOLDER_TO_COMPRESS}"
requirements.txt LICENSE \
"${FOLDER_TO_COMPRESS}"
env:
REPO_NAME: ${{ env.REPO_NAME }}
GITHUB_REF_NAME: ${{ github.ref_name }}
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,6 @@ $RECYCLE.BIN/
*.njsproj
*.sln
*.sw?

input
output
33 changes: 19 additions & 14 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,25 @@ repos:
types: [yaml]
files: \.(yaml)$
exclude: '.github/.*'
- id: yml-format
name: yml-format
entry: python scripts/format_yml/main.py
language: system
types: [yaml]
files: \.(yml)$
exclude: '.github/.*'
- id: yamllint
name: yamllint
entry: yamllint
language: system
types: [yaml]
files: \.(yml|yaml)$
exclude: '.github/.*'
# WTF this error, TODO: solve yml stuck check
# # Some additional debug shows errors script cant handle, such as..
# # # truthy value should be one of [false, true] (truthy)
# # [Special format inside .github folder]
# # fix line cutter
# - id: yml-format
# name: yml-format
# entry: python scripts/format_yml/main.py
# language: system
# types: [yaml]
# files: \.(yml)$
# exclude: '.github/.*'
# - id: yamllint
# name: yamllint
# entry: yamllint
# language: system
# types: [yaml]
# files: \.(yml|yaml)$
# exclude: '.github/'
- id: docker-compose
name: docker-compose
entry: python scripts/validate_docker_compose/main.py
Expand Down
3 changes: 2 additions & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ extension-pkg-whitelist=
fail-on=

# Specify a score threshold under which the program will exit with error.
fail-under=10
fail-under=9

# Interpret the stdin as a python script, whose filename needs to be passed as
# the module_or_package argument.
Expand Down Expand Up @@ -434,6 +434,7 @@ disable=missing-module-docstring,
too-few-public-methods,
E1101,
C0115,
W1203,
duplicate-code,
raise-missing-from,
wrong-import-order,
Expand Down
69 changes: 0 additions & 69 deletions CHANGELOG.md

This file was deleted.

2 changes: 1 addition & 1 deletion CNAME
Original file line number Diff line number Diff line change
@@ -1 +1 @@
template.bridgefusion.icu
langding.bridgefusion.icu
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ๐Ÿค Contributing to github-cicd-template
# ๐Ÿค Contributing to langding

We welcome contributions to github-cicd-template! To make sure the process goes smoothly, please follow these guidelines:

Expand Down
9 changes: 4 additions & 5 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
# ๐Ÿ”’ Security Policy

Security Policy for **GitHub CICD Template** repository includes all required compliance matrix and artifact mapping.
Security Policy for **Landing** repository includes all required compliance matrix and artifact mapping.

## ๐Ÿงฎ Supported Versions

We provide security updates for the following versions of our project:

| Version | Status | Secure |
| ------- | ----------- | ------ |
| 1.0.1 | End-of-life | No |
| >1.0.4 | Supported | Yes |
| Version | Status | Secure |
| ------- | --------- | ------ |
| >1.0.4 | Supported | Yes |

## ๐Ÿ›ก๏ธ Security Practices

Expand Down
5 changes: 5 additions & 0 deletions __init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env python3

from src import main

main.main()
Loading

0 comments on commit c47a79e

Please sign in to comment.