Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- dev

jobs:
build:
Expand All @@ -13,6 +14,15 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Python and run pylint
run: |
if [ ! -d "venv" ]; then
python3 -m venv venv
fi
. ./venv/bin/activate
pip install -r requirements.txt
pylint --fail-under=5 app/

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
Expand Down Expand Up @@ -48,7 +58,7 @@ jobs:
DIGEST=$(docker inspect --format='{{index .RepoDigests 0}}' ${{ secrets.DOCKER_USERNAME }}/devops360-app:latest)
echo "digest=$DIGEST" >> $GITHUB_OUTPUT

- name: Install cosign
- name: Install cosignז
uses: sigstore/cosign-installer@v3.4.0

- name: Write cosign.key to disk
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ typing_extensions==4.14.0
urllib3==2.5.0
uvicorn==0.34.3
yarg==0.1.10
pylint==3.3.8