Sebastián Ramírez
10 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with
15 additions and
57 deletions
-
.github/dependabot.yml
-
.github/workflows/generate-client.yml
-
.github/workflows/latest-changes.yml
-
.github/workflows/lint-backend.yml
-
.github/workflows/smokeshow.yml
-
.github/workflows/test-backend.yml
|
|
@ -1,16 +1,16 @@ |
|
|
|
version: 2 |
|
|
|
updates: |
|
|
|
# GitHub Actions |
|
|
|
- package-ecosystem: "github-actions" |
|
|
|
directory: "/" |
|
|
|
- package-ecosystem: github-actions |
|
|
|
directory: / |
|
|
|
schedule: |
|
|
|
interval: "daily" |
|
|
|
interval: daily |
|
|
|
commit-message: |
|
|
|
prefix: ⬆ |
|
|
|
# Python |
|
|
|
- package-ecosystem: "pip" |
|
|
|
directory: "/" |
|
|
|
- package-ecosystem: pip |
|
|
|
directory: / |
|
|
|
schedule: |
|
|
|
interval: "daily" |
|
|
|
interval: daily |
|
|
|
commit-message: |
|
|
|
prefix: ⬆ |
|
|
|
|
|
@ -21,7 +21,7 @@ jobs: |
|
|
|
node-version: lts/* |
|
|
|
- uses: actions/setup-python@v5 |
|
|
|
with: |
|
|
|
python-version: '3.10' |
|
|
|
python-version: "3.10" |
|
|
|
- name: Install uv |
|
|
|
uses: astral-sh/setup-uv@v2 |
|
|
|
with: |
|
|
@ -41,15 +41,3 @@ jobs: |
|
|
|
git add frontend/src/client |
|
|
|
git diff --staged --quiet || git commit -m "✨ Autogenerate frontend client" |
|
|
|
git push |
|
|
|
|
|
|
|
# https://github.com/marketplace/actions/alls-green#why |
|
|
|
generate-client-alls-green: # This job does nothing and is only used for the branch protection |
|
|
|
if: always() |
|
|
|
needs: |
|
|
|
- generate-client |
|
|
|
runs-on: ubuntu-latest |
|
|
|
steps: |
|
|
|
- name: Decide whether the needed jobs succeeded or failed |
|
|
|
uses: re-actors/alls-green@release/v1 |
|
|
|
with: |
|
|
|
jobs: ${{ toJSON(needs) }} |
|
|
|
|
|
@ -12,9 +12,9 @@ on: |
|
|
|
description: PR number |
|
|
|
required: true |
|
|
|
debug_enabled: |
|
|
|
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' |
|
|
|
description: "Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)" |
|
|
|
required: false |
|
|
|
default: 'false' |
|
|
|
default: "false" |
|
|
|
|
|
|
|
jobs: |
|
|
|
latest-changes: |
|
|
@ -34,7 +34,7 @@ jobs: |
|
|
|
with: |
|
|
|
token: ${{ secrets.GITHUB_TOKEN }} |
|
|
|
latest_changes_file: ./release-notes.md |
|
|
|
latest_changes_header: '## Latest Changes' |
|
|
|
end_regex: '^## ' |
|
|
|
latest_changes_header: "## Latest Changes" |
|
|
|
end_regex: "^## " |
|
|
|
debug_logs: true |
|
|
|
label_header_prefix: '### ' |
|
|
|
label_header_prefix: "### " |
|
|
|
|
|
@ -10,7 +10,6 @@ on: |
|
|
|
- synchronize |
|
|
|
|
|
|
|
jobs: |
|
|
|
|
|
|
|
lint-backend: |
|
|
|
runs-on: ubuntu-latest |
|
|
|
steps: |
|
|
@ -19,22 +18,10 @@ jobs: |
|
|
|
- name: Set up Python |
|
|
|
uses: actions/setup-python@v5 |
|
|
|
with: |
|
|
|
python-version: '3.10' |
|
|
|
python-version: "3.10" |
|
|
|
- name: Install uv |
|
|
|
uses: astral-sh/setup-uv@v2 |
|
|
|
with: |
|
|
|
version: "0.4.15" |
|
|
|
- run: uv run bash scripts/lint.sh |
|
|
|
working-directory: backend |
|
|
|
|
|
|
|
# https://github.com/marketplace/actions/alls-green#why |
|
|
|
lint-backend-alls-green: # This job does nothing and is only used for the branch protection |
|
|
|
if: always() |
|
|
|
needs: |
|
|
|
- lint-backend |
|
|
|
runs-on: ubuntu-latest |
|
|
|
steps: |
|
|
|
- name: Decide whether the needed jobs succeeded or failed |
|
|
|
uses: re-actors/alls-green@release/v1 |
|
|
|
with: |
|
|
|
jobs: ${{ toJSON(needs) }} |
|
|
|
|
|
@ -16,17 +16,14 @@ jobs: |
|
|
|
steps: |
|
|
|
- uses: actions/setup-python@v5 |
|
|
|
with: |
|
|
|
python-version: '3.9' |
|
|
|
|
|
|
|
python-version: "3.10" |
|
|
|
- run: pip install smokeshow |
|
|
|
|
|
|
|
- uses: actions/download-artifact@v4 |
|
|
|
with: |
|
|
|
name: coverage-html |
|
|
|
path: backend/htmlcov |
|
|
|
github-token: ${{ secrets.GITHUB_TOKEN }} |
|
|
|
run-id: ${{ github.event.workflow_run.id }} |
|
|
|
|
|
|
|
- run: smokeshow upload backend/htmlcov |
|
|
|
env: |
|
|
|
SMOKESHOW_GITHUB_STATUS_DESCRIPTION: Coverage {coverage-percentage} |
|
|
|
|
|
@ -10,17 +10,15 @@ on: |
|
|
|
- synchronize |
|
|
|
|
|
|
|
jobs: |
|
|
|
|
|
|
|
test-backend: |
|
|
|
runs-on: ubuntu-latest |
|
|
|
steps: |
|
|
|
- name: Checkout |
|
|
|
uses: actions/checkout@v4 |
|
|
|
|
|
|
|
- name: Set up Python |
|
|
|
uses: actions/setup-python@v5 |
|
|
|
with: |
|
|
|
python-version: '3.10' |
|
|
|
python-version: "3.10" |
|
|
|
- name: Install uv |
|
|
|
uses: astral-sh/setup-uv@v2 |
|
|
|
with: |
|
|
@ -40,15 +38,3 @@ jobs: |
|
|
|
name: coverage-html |
|
|
|
path: backend/htmlcov |
|
|
|
include-hidden-files: true |
|
|
|
|
|
|
|
# https://github.com/marketplace/actions/alls-green#why |
|
|
|
alls-green: # This job does nothing and is only used for the branch protection |
|
|
|
if: always() |
|
|
|
needs: |
|
|
|
- test-backend |
|
|
|
runs-on: ubuntu-latest |
|
|
|
steps: |
|
|
|
- name: Decide whether the needed jobs succeeded or failed |
|
|
|
uses: re-actors/alls-green@release/v1 |
|
|
|
with: |
|
|
|
jobs: ${{ toJSON(needs) }} |
|
|
|