-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ci: cleanups and fixes * ci: cleanups and fixes * ci: cleanups and fixes * ci: cleanups and fixes
- Loading branch information
1 parent
919f723
commit 1dfa9dc
Showing
7 changed files
with
34 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: continuous integration | ||
name: 🔎 continuous integration | ||
|
||
on: | ||
push: | ||
|
@@ -30,35 +30,6 @@ jobs: | |
with: | ||
submodules: "true" | ||
|
||
- name: Check skippable steps | ||
timeout-minutes: 10 | ||
id: skip | ||
uses: fkirc/skip-duplicate-actions@v5 | ||
with: | ||
cancel_others: true | ||
skip_after_successful_duplicate: true | ||
do_not_skip: '["workflow_dispatch", "schedule"]' | ||
paths_filter: | | ||
project: | ||
paths: | ||
- '*.lock' | ||
- 'pyproject.toml' | ||
ci: | ||
paths: | ||
- '.github/**' | ||
docs: | ||
paths: | ||
- 'docs/**' | ||
sources: | ||
paths: | ||
- 'src/**' | ||
- 'tests/**' | ||
- name: Pull request | Add author | ||
timeout-minutes: 5 | ||
if: github.event_name == 'pull_request' | ||
uses: toshimaru/[email protected] | ||
|
||
- name: Pull request | Add labels | ||
timeout-minutes: 30 | ||
if: github.event_name == 'pull_request' | ||
|
@@ -104,27 +75,15 @@ jobs: | |
- name: Install dependencies | ||
timeout-minutes: 10 | ||
run: pdm install --dev --check --frozen-lockfile | ||
env: | ||
FURY_TOKEN: ${{ secrets.PYPI_DEPLOY_TOKEN}} | ||
|
||
- name: Lint | ||
timeout-minutes: 10 | ||
if: | | ||
!steps.skip.outputs.should_skip || | ||
!fromJSON(steps.skip.outputs.paths_result).project.should_skip || | ||
!fromJSON(steps.skip.outputs.paths_result).ci.should_skip || | ||
!fromJSON(steps.skip.outputs.paths_result).sources.should_skip | ||
run: pdm run lint | ||
env: | ||
PRE_COMMIT_COLOR: always | ||
|
||
- name: Test | ||
timeout-minutes: 20 | ||
if: | | ||
!steps.skip.outputs.should_skip || | ||
!fromJSON(steps.skip.outputs.paths_result).project.should_skip || | ||
!fromJSON(steps.skip.outputs.paths_result).ci.should_skip || | ||
!fromJSON(steps.skip.outputs.paths_result).sources.should_skip | ||
run: pdm run test | ||
|
||
- name: Publish test reports | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
name: update submodules | ||
--- | ||
name: 🔁 update submodules | ||
|
||
on: | ||
schedule: | ||
|
@@ -12,8 +13,7 @@ concurrency: | |
cancel-in-progress: true | ||
|
||
env: | ||
HEAD_BRANCH: "update_submodules" | ||
BASE_BRANCH: "main" | ||
BRANCH: "main" | ||
|
||
jobs: | ||
update_submodules: | ||
|
@@ -28,32 +28,42 @@ jobs: | |
with: | ||
submodules: "recursive" | ||
fetch-depth: 0 | ||
token: ${{ secrets.CI_BOT_TOKEN }} | ||
|
||
- name: Fetch all branches | ||
- name: Checkout ${{ env.BRANCH }} branch | ||
timeout-minutes: 10 | ||
run: git fetch origin +refs/heads/*:refs/remotes/origin/* | ||
run: git checkout ${{ env.BRANCH }} | ||
|
||
- name: Update Submodules | ||
- name: Get date | ||
timeout-minutes: 10 | ||
run: echo "CURRENT_DATE=$(date +"%Y-%m-%d %H:%M")" >> $GITHUB_ENV | ||
|
||
- name: Update submodules | ||
id: submodules | ||
timeout-minutes: 10 | ||
uses: sgoudham/[email protected] | ||
|
||
- name: Get date | ||
run: echo "CURRENT_DATE=$(date)" >> $GITHUB_ENV | ||
- name: Check submodules changes | ||
id: changes | ||
timeout-minutes: 10 | ||
shell: bash | ||
run: | | ||
git status -s | ||
[[ -n "$(git status -s)" ]] && echo "changes=true" >> $GITHUB_OUTPUT || true | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v7 | ||
- name: Create pull request | ||
if: ${{ !cancelled() && steps.changes.outputs.changes == 'true' }} | ||
timeout-minutes: 10 | ||
uses: peter-evans/create-pull-request@v6 | ||
with: | ||
token: ${{ secrets.CI_BOT_TOKEN }} | ||
commit-message: Update submodules | ||
signoff: false | ||
author: ${{ secrets.CI_BOT_USERNAME }} <${{ secrets.CI_BOT_USERNAME }}@users.noreply.github.com> | ||
branch: ${{ env.HEAD_BRANCH }} | ||
base: ${{ env.BASE_BRANCH }} | ||
branch: ${{ env.BRANCH }}-update-submodules | ||
base: ${{ env.BRANCH }} | ||
delete-branch: false | ||
add-paths: | | ||
inputs/* | ||
outputs/* | ||
commit-message: 'chore: update submodules - ${{ env.CURRENT_DATE }}' | ||
title: 'chore: update submodules - ${{ env.CURRENT_DATE }}' | ||
body: ${{ steps.submodules.outputs.prBody }} | ||
labels: assets,automerge | ||
labels: submodules | ||
draft: false | ||
signoff: false |