Skip to content

Commit

Permalink
[format] use pre-commit in git-actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Bowen12992 committed Jun 14, 2024
1 parent 823c147 commit 497fa49
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: pre-commit

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v3
- uses: pre-commit/[email protected]
2 changes: 1 addition & 1 deletion .github/workflows/python-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
jobs:
container-unit-test:
runs-on: [self-hosted, docker]
timeout-minutes: 30
timeout-minutes: 50
container:
image: localhost:5000/flag-gems-ci:v1.0
ports:
Expand Down

0 comments on commit 497fa49

Please sign in to comment.