👷 Update GitHub Actions format (#1363)
This commit is contained in:

committed by
GitHub

parent
cdc7b50fec
commit
32227c4020
12
.github/dependabot.yml
vendored
12
.github/dependabot.yml
vendored
@@ -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: ⬆
|
||||
|
14
.github/workflows/generate-client.yml
vendored
14
.github/workflows/generate-client.yml
vendored
@@ -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) }}
|
||||
|
10
.github/workflows/latest-changes.yml
vendored
10
.github/workflows/latest-changes.yml
vendored
@@ -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: "### "
|
||||
|
15
.github/workflows/lint-backend.yml
vendored
15
.github/workflows/lint-backend.yml
vendored
@@ -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) }}
|
||||
|
5
.github/workflows/smokeshow.yml
vendored
5
.github/workflows/smokeshow.yml
vendored
@@ -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}
|
||||
|
16
.github/workflows/test-backend.yml
vendored
16
.github/workflows/test-backend.yml
vendored
@@ -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) }}
|
||||
|
Reference in New Issue
Block a user