Skip to content

Commit

Permalink
Merge pull request #2 from NCKU-CSIE-Union/dev
Browse files Browse the repository at this point in the history
feat : ci action
  • Loading branch information
jason810496 authored Jan 22, 2024
2 parents 2cad833 + 0f7cc79 commit 62b9281
Show file tree
Hide file tree
Showing 5 changed files with 274 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/workflows/bandit-action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Build and Deploy to Cloud Run

on:
push:
branches:
- main
- dev

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Bandit Test
uses: mdegis/bandit-action@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
path: "."
level: high
confidence: high
exit_zero: true
3 changes: 2 additions & 1 deletion .github/workflows/google-cloudrun-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: Build and Deploy to Cloud Run

on:
push:
branches: [ "main" , "develop" , "stage" ]
branches:
- main

env:
PROJECT_ID: tsmc-test-412003 # TODO: update Google Cloud project id
Expand Down
10 changes: 10 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.1.14
hooks:
# Run the linter.
- id: ruff
args: [ --fix ]
# Run the formatter.
- id: ruff-format
226 changes: 226 additions & 0 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[tool.poetry]
name = "tsmc-hackathon-2024-it-infra"
version = "0.1.0"
description = "TSMC hackathon 2024 IT Infor Group"
authors = ["jason810496 <[email protected]>"]
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.11"
pre-commit = "^3.6.0"
ruff = "^0.1.14"


[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

0 comments on commit 62b9281

Please sign in to comment.