Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/lint.yml
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,9 +4,12 @@ on:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: "31 1,12 * * *"
workflow_dispatch:
jobs:
lint:
if: github.event_name != 'pull_request' || github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/markdownlint.yml
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,9 +4,12 @@ on:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: "31 1,12 * * *"
workflow_dispatch:
jobs:
markdownlint:
if: github.event_name != 'pull_request' || github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
Expand Down
24 changes: 19 additions & 5 deletions .github/workflows/scaffold-cross-platform.yml
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,6 +5,9 @@ on:
branches: [main]
pull_request:
branches: [main]
schedule:
# Monday 06:00 UTC (CNA parity)
- cron: "0 6 * * 1"
workflow_dispatch:

permissions:
Expand All@@ -19,10 +22,12 @@ env:
# After create-awesome-python-app>=0.2.0 ships resolve_catalog_spec, slugs also work.
CPA_TEMPLATE_FASTAPI: https://github.com/Create-Python-App/cpa-templates?subdir=templates/fastapi-starter
CPA_ADDON_DOCKER: https://github.com/Create-Python-App/cpa-templates?subdir=extensions/fastapi-docker
CPA_ADDON_GITHUB: https://github.com/Create-Python-App/cpa-templates?subdir=extensions/all-github-setup

jobs:
scaffold:
name: ${{ matrix.os }} / fastapi-starter
if: github.event_name != 'pull_request' || github.event.pull_request.draft == false
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand DownExpand Up@@ -72,31 +77,40 @@ jobs:
PY

addon-smoke:
name: ubuntu-latest / fastapi-starter + fastapi-docker
runs-on: ubuntu-latest
name: ${{ matrix.os }} / fastapi-starter + docker + github-setup
if: github.event_name != 'pull_request' || github.event.pull_request.draft == false
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: astral-sh/setup-uv@v7
- uses: actions/setup-python@v6
with:
python-version: "3.12"

- name: Scaffold with one extension from PyPI CLI
- name: Scaffold with compatible addon combination
env:
TARGET: ${{ runner.temp }}/cpa-fastapi-docker
TARGET: ${{ runner.temp }}/cpa-fastapi-addons
shell: bash
run: |
set -euo pipefail
uvx create-awesome-python-app@latest \
--template "$CPA_TEMPLATE_FASTAPI" \
--addons "$CPA_ADDON_DOCKER" \
--addons "$CPA_ADDON_GITHUB" \
--no-interactive \
--no-install \
--force \
"$TARGET"

- name: Verify extension files
env:
TARGET: ${{ runner.temp }}/cpa-fastapi-docker
TARGET: ${{ runner.temp }}/cpa-fastapi-addons
shell: bash
run: |
set -euo pipefail
test -f "$TARGET/Dockerfile"
test -f "$TARGET/.dockerignore"
test -d "$TARGET/.github"
3 changes: 3 additions & 0 deletions .github/workflows/shellcheck.yml
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,9 +4,12 @@ on:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: "31 1,12 * * *"
workflow_dispatch:
jobs:
shellcheck:
if: github.event_name != 'pull_request' || github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,9 +4,13 @@ on:
branches: [main]
pull_request:
branches: [main]
schedule:
# Twice daily (CNA parity) — catch upstream/catalog regressions.
- cron: "31 1,12 * * *"
workflow_dispatch:
jobs:
test:
if: github.event_name != 'pull_request' || github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/type-check.yml
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,9 +4,12 @@ on:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: "31 1,12 * * *"
workflow_dispatch:
jobs:
typecheck:
if: github.event_name != 'pull_request' || github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
Expand Down
Loading