Skip to content

Commit

Permalink
Merge branch 'master' into ci/arm
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxymVlasov authored Jan 25, 2025
2 parents 05c6fe5 + 980a129 commit 10aee20
Show file tree
Hide file tree
Showing 9 changed files with 58 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build-image-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

name: Build Dockerfile if changed and run smoke tests

on: [pull_request]
on:
pull_request:

permissions:
contents: read

env:
IMAGE_TAG: pr-test
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/build-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,15 @@ on:
schedule:
- cron: 00 00 * * *

permissions:
contents: read

jobs:
docker:
permissions:
# for docker/build-push-action to publish docker image
packages: write

runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ on:
pull_request:
workflow_call: # a way to embed the main tests

permissions:
contents: read

concurrency:
group: >-
${{
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/pr-title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,17 @@ on:
- edited
- synchronize

permissions:
contents: read

jobs:
main:
permissions:
# for amannn/action-semantic-pull-request to analyze PRs
pull-requests: read
# for amannn/action-semantic-pull-request to mark status of analyzed PR
statuses: write

name: Validate PR title
runs-on: ubuntu-latest
steps:
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@

name: Common issues check

on: [pull_request]
on:
pull_request:

permissions:
contents: read

jobs:
pre-commit:
permissions:
contents: write # for pre-commit/action to push back fixes to PR branch
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,20 @@ on:
- .pre-commit-hooks.yaml
# Ignore paths
- '!tests/**'

permissions:
contents: read

jobs:
release:
permissions:
# for cycjimmy/semantic-release-action to create a release
contents: write
# for cycjimmy/semantic-release-action to write comments to issues
issues: write
# for cycjimmy/semantic-release-action to write comments to PRs
pull-requests: write

name: Release
runs-on: ubuntu-latest
steps:
Expand All @@ -34,4 +46,7 @@ jobs:
@semantic-release/[email protected]
@semantic-release/[email protected]
env:
# Custom token for triggering Docker image build GH Workflow on release
# created by cycjimmy/semantic-release-action. Events created by
# workflows with default GITHUB_TOKEN not trigger other GH Workflow.
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
3 changes: 3 additions & 0 deletions .github/workflows/reusable-tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ on:
description: Mandatory token for uploading to Codecov
required: true

permissions:
contents: read

env:
COLOR: >- # Supposedly, pytest or coveragepy use this
yes
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/scheduled-runs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
- cron: 3 5 * * * # run daily at 5:03 UTC
workflow_dispatch: # manual trigger

permissions:
contents: read

run-name: >-
🌃
Nightly run of
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/stale-actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@ on:
schedule:
- cron: 0 0 * * *

permissions:
contents: read

jobs:
stale:
permissions:
issues: write # for actions/stale to close stale issues
pull-requests: write # for actions/stale to close stale PRs
runs-on: ubuntu-latest
steps:
- uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
Expand Down

0 comments on commit 10aee20

Please sign in to comment.