Skip to content

Commit

Permalink
Fix CI Error (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwanok authored Mar 25, 2024
1 parent 9335243 commit 272da1e
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 3 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Check Code Quality

on:
push:
branches: [ "*" ]
paths:
- "project/*"


jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ 3.12 ]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install black ruff
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run Black
run: black --check project

- name: Run Ruff
run: ruff check project
7 changes: 4 additions & 3 deletions .github/workflows/elastic-beanstalk-deploy-prod.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy to AWS Elastic Beanstalk Dev
name: Deploy to AWS Elastic Beanstalk Production

on:
push:
Expand Down Expand Up @@ -27,10 +27,11 @@ jobs:
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run Black
run: black --check web/project
run: black --check project

- name: Run Ruff
run: ruff check web/project
run: ruff check project

deploy:
runs-on: ubuntu-latest

Expand Down

0 comments on commit 272da1e

Please sign in to comment.