Skip to content

Commit 0cac270

Browse files
ci: release workflows
Added: - Automatic release workflow, - Automatic code validation, - Licenses. - Commit message linting
2 parents c22a122 + 6dfe8f7 commit 0cac270

19 files changed

Lines changed: 9138 additions & 256 deletions

.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
PIPENV_VENV_IN_PROJECT=1

.github/workflows/release.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- release
7+
8+
jobs:
9+
release:
10+
name: Release
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
# Step 1: Checkout the repository
15+
- name: Checkout Code
16+
uses: actions/checkout@v3
17+
18+
# Step 2: Set up Node.js
19+
- name: Setup Node.js
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: 21
23+
cache: "npm"
24+
25+
# Step 3: Install dependencies
26+
- name: Install Dependencies
27+
run: npm ci
28+
29+
# Step 4: Run semantic-release
30+
- name: Run Semantic Release
31+
env:
32+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
33+
run: npx semantic-release --assets "./docs/**/*"

.github/workflows/validate.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Validate
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- develop
7+
- release
8+
9+
jobs:
10+
format:
11+
name: Format Check
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
# Step 1: Checkout the repository
16+
- name: Checkout Code
17+
uses: actions/checkout@v3
18+
19+
# Step 2: Set up Python
20+
- name: Set up Python
21+
uses: actions/setup-python@v4
22+
with:
23+
python-version: 3.12
24+
25+
# Step 3: Install dependencies
26+
- name: Install dependencies
27+
run: |
28+
pip install pipenv
29+
pipenv install --dev
30+
31+
# Step 4: Run ruff check
32+
- name: Run ruff check
33+
run: pipenv run ruff check .

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ celerybeat.pid
120120
*.sage.py
121121

122122
# Environments
123-
.env
124123
.venv
125124
env/
126125
venv/
@@ -163,3 +162,6 @@ cython_debug/
163162
*.odt
164163
*.emf
165164
code/
165+
166+
# node
167+
node_modules/

.husky/commit-msg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx --no -- commitlint --edit $1

.husky/pre-commit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export NODE_OPTIONS='--disable-warning=ExperimentalWarning'
2+
npx lint-staged --allow-empty

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"cSpell.words": ["opendocument", "pandoc"]
3+
}

CHANGELOG.md

Whitespace-only changes.

0 commit comments

Comments
 (0)