forked from Lyken17/pytorch-OpCounter
-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
43c064a
commit 321892a
Showing
1 changed file
with
29 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Ultralytics 🚀 - AGPL-3.0 license | ||
# Ultralytics Actions https://github.com/ultralytics/actions | ||
# This workflow automatically formats code and documentation in PRs to official Ultralytics standards | ||
|
||
name: Ultralytics Actions | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request_target: | ||
branches: [main] | ||
types: [opened, closed, synchronize] | ||
|
||
jobs: | ||
format: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Run Ultralytics Formatting | ||
uses: ultralytics/actions@main | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} # automatically generated, do not modify | ||
python: true # format Python code and docstrings | ||
markdown: true # format Markdown | ||
prettier: true # format YAML | ||
spelling: true # check spelling | ||
links: false # check broken links | ||
summary: true # print PR summary with GPT4 (requires 'openai_api_key' or 'openai_azure_api_key' and 'openai_azure_endpoint') | ||
openai_azure_api_key: ${{ secrets.OPENAI_AZURE_API_KEY }} | ||
openai_azure_endpoint: ${{ secrets.OPENAI_AZURE_ENDPOINT }} |