Skip to content

Commit f4970f3

Browse files
committed
Merge remote-tracking branch 'template/dev' into dev
2 parents 19ad2d6 + 97b10d8 commit f4970f3

File tree

24 files changed

+639
-209
lines changed

24 files changed

+639
-209
lines changed

.github/workflows/CI-CD.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,19 @@ concurrency:
1414
cancel-in-progress: true
1515

1616
jobs:
17-
tests:
18-
uses: ./.github/workflows/test.yaml
17+
quality:
18+
uses: ./.github/workflows/quality.yaml
1919

2020
docker:
21-
needs: tests
21+
needs: quality
2222
permissions:
2323
contents: read
2424
packages: write
2525
id-token: write
2626
uses: ./.github/workflows/docker.yaml
2727

2828
deploy:
29+
if: github.event_name == 'push' && github.ref == 'refs/heads/dev'
2930
needs: docker
3031
uses: ./.github/workflows/deploy.yaml
3132
secrets: inherit

.github/workflows/docker.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
uses: actions/checkout@v4
1919

2020
- name: Set up Docker Buildx
21-
uses: docker/setup-buildx-action@v3.9.0
21+
uses: docker/setup-buildx-action@v3.10.0
2222

2323
- name: Log into registry ${{ env.REGISTRY }}
2424
uses: docker/[email protected]
@@ -29,7 +29,7 @@ jobs:
2929

3030
- name: Extract Docker metadata
3131
id: meta
32-
uses: docker/metadata-action@v5.6.1
32+
uses: docker/metadata-action@v5.7.0
3333
with:
3434
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
3535
tags: |
@@ -39,7 +39,7 @@ jobs:
3939
type=sha
4040
4141
- name: Build and push Docker image
42-
uses: docker/build-push-action@v6.14.0
42+
uses: docker/build-push-action@v6.15.0
4343
with:
4444
context: .
4545
push: true

.github/workflows/license.yaml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.github/workflows/quality.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Quality Checks
2+
3+
on: workflow_call
4+
5+
jobs:
6+
quality:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
check: [format, lint, test]
12+
include:
13+
- check: format
14+
name: "Format Check"
15+
command: "pdm run ruff format --check ."
16+
- check: lint
17+
name: "Lint Check"
18+
command: "pdm run ruff check ."
19+
- check: test
20+
name: "Tests Check"
21+
command: "pdm run tests"
22+
23+
name: ${{ matrix.name }}
24+
25+
steps:
26+
- uses: actions/checkout@v4
27+
28+
- name: Setup PDM
29+
uses: pdm-project/setup-pdm@v4
30+
with:
31+
cache: true
32+
33+
- name: Install dependencies
34+
run: pdm install -d
35+
36+
- name: ${{ matrix.name }}
37+
run: ${{ matrix.command }}
38+
39+
check-license-header:
40+
name: License Header Check
41+
runs-on: ubuntu-latest
42+
steps:
43+
- name: Checkout repository
44+
uses: actions/checkout@v4
45+
- name: Setup Copywrite
46+
uses: hashicorp/setup-copywrite@5e3e8a26d7b9f8a508848ad0a069dfd2f7aa5339
47+
- name: Check Header Compliance
48+
run: copywrite headers --plan --config .copywrite.hcl

.github/workflows/sync_template.yaml

Lines changed: 0 additions & 39 deletions
This file was deleted.

.github/workflows/test.yaml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/workflows/update_dependencies.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,14 @@ jobs:
7272
# Function to commit changes
7373
commit_changes() {
7474
git add requirements.txt pyproject.toml pdm.lock
75-
git commit -m "Update dependencies"
75+
git commit -m ":arrow_up: Update dependencies lock"
7676
}
7777
7878
# Function to create PR
7979
create_pr() {
8080
local BRANCH=$1
8181
gh pr create \
82-
--title "Update dependencies" \
82+
--title ":arrow_up: Update dependencies lock" \
8383
--body "This PR updates the project dependencies. Please review the changes and merge if everything looks good." \
8484
--base ${{ github.ref_name }} \
8585
--head $BRANCH \

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ repos:
2121
exclude: \.(po|pot|yml|yaml)$
2222
- repo: https://github.com/astral-sh/ruff-pre-commit
2323
# Ruff version.
24-
rev: v0.9.4
24+
rev: v0.9.10
2525
hooks:
2626
# Run the linter.
2727
- id: ruff

0 commit comments

Comments
 (0)