Skip to content

Commit 6cc8171

Browse files
wphillipmoorewphillipmoore-claude
andauthored
chore(ci): adopt CI/CD workflow naming convention (#383) (#492)
Co-authored-by: wphillipmoore-claude <255925739+wphillipmoore-claude@users.noreply.github.com>
1 parent be2b89e commit 6cc8171

4 files changed

Lines changed: 48 additions & 70 deletions

File tree

.github/workflows/cd.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# https://github.com/wphillipmoore/standard-actions/blob/develop/.github/workflows/README.md
2+
name: CD
3+
4+
on:
5+
push:
6+
branches: [develop, main]
7+
workflow_dispatch:
8+
9+
permissions:
10+
attestations: write
11+
contents: write
12+
id-token: write
13+
pull-requests: write
14+
15+
jobs:
16+
docs:
17+
uses: wphillipmoore/standard-actions/.github/workflows/cd-docs.yml@v1.5
18+
with:
19+
pre-deploy-command: >-
20+
uv sync --frozen --group docs &&
21+
git clone --depth 1 --branch develop
22+
https://github.com/wphillipmoore/mq-rest-admin-common.git
23+
.mq-rest-admin-common
24+
permissions:
25+
contents: write
26+
27+
release:
28+
if: github.ref == 'refs/heads/main'
29+
uses: wphillipmoore/standard-actions/.github/workflows/cd-release.yml@v1.5
30+
with:
31+
language: python
32+
container-tag: "3.14"
33+
registry-publish: true
34+
secrets: inherit

.github/workflows/ci.yml

Lines changed: 14 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# https://github.com/wphillipmoore/standard-actions/blob/develop/.github/workflows/README.md
12
name: CI
23

34
on:
@@ -19,33 +20,12 @@ concurrency:
1920
cancel-in-progress: true
2021

2122
jobs:
22-
23-
# ---------------------------------------------------------------------------
24-
# Quality
25-
# ---------------------------------------------------------------------------
26-
27-
quality:
28-
uses: wphillipmoore/standard-actions/.github/workflows/ci-quality.yml@v1.5
29-
with:
30-
language: python
31-
versions: '["3.12", "3.13", "3.14"]'
32-
33-
test:
34-
uses: wphillipmoore/standard-actions/.github/workflows/ci-test.yml@v1.5
35-
with:
36-
language: python
37-
versions: '["3.12", "3.13", "3.14"]'
38-
3923
audit:
4024
uses: wphillipmoore/standard-actions/.github/workflows/ci-audit.yml@v1.5
4125
with:
4226
language: python
4327
versions: '["3.12", "3.13", "3.14"]'
4428

45-
# ---------------------------------------------------------------------------
46-
# Integration tests
47-
# ---------------------------------------------------------------------------
48-
4929
integration-tests:
5030
name: "test / integration / ${{ matrix.python-version }}"
5131
runs-on: ubuntu-latest
@@ -84,7 +64,6 @@ jobs:
8464
run: uv sync --frozen --group dev
8565

8666
- name: Setup MQ environment
87-
# yamllint disable-line rule:line-length
8867
uses: wphillipmoore/mq-rest-admin-dev-environment/.github/actions/setup-mq@main
8968
with:
9069
project-name: mqrest-python-${{ matrix.project-suffix }}
@@ -104,9 +83,11 @@ jobs:
10483
MQ_REST_ADMIN_RUN_INTEGRATION=1 \
10584
uv run pytest -m integration
10685
107-
# ---------------------------------------------------------------------------
108-
# Security and standards
109-
# ---------------------------------------------------------------------------
86+
quality:
87+
uses: wphillipmoore/standard-actions/.github/workflows/ci-quality.yml@v1.5
88+
with:
89+
language: python
90+
versions: '["3.12", "3.13", "3.14"]'
11091

11192
security:
11293
uses: wphillipmoore/standard-actions/.github/workflows/ci-security.yml@v1.5
@@ -118,12 +99,14 @@ jobs:
11899
contents: read
119100
security-events: write
120101

121-
# ---------------------------------------------------------------------------
122-
# Release
123-
# ---------------------------------------------------------------------------
102+
test:
103+
uses: wphillipmoore/standard-actions/.github/workflows/ci-test.yml@v1.5
104+
with:
105+
language: python
106+
versions: '["3.12", "3.13", "3.14"]'
124107

125-
release:
126-
uses: wphillipmoore/standard-actions/.github/workflows/ci-release.yml@v1.5
108+
version:
109+
uses: wphillipmoore/standard-actions/.github/workflows/ci-version-bump.yml@v1.5
127110
with:
128111
language: python
129-
run-release: ${{ inputs.run-release != false }}
112+
run-release: ${{ inputs.run-release != 'false' }}

.github/workflows/publish-docs.yml

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

.github/workflows/publish-release.yml

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

0 commit comments

Comments
 (0)