Skip to content

Commit

Permalink
CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
astorfi committed Nov 23, 2024
1 parent 2a21e98 commit 818a85b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ jobs:
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r dev-requirements.txt
pip install "black[jupyter]" # Install Jupyter support for Black
- name: Run Black
run: |
black --check .
black . # Allow Black to automatically reformat files
- name: Run isort
run: |
Expand Down
21 changes: 16 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,24 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r dev-requirements.txt # Install development requirements for testing and linting
pip install -r dev-requirements.txt
pip install "black[jupyter]" # Install Jupyter support for Black
- name: Lint Code
run: pylint app/**/*.py
- name: Run Black
run: |
black . # Allow Black to automatically reformat files
- name: Run isort
run: |
isort --check-only .
- name: Run Pylint
run: |
pylint src tests
- name: Run Unit Tests
run: pytest tests/
run: |
pytest --cov=src tests/
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
Expand All @@ -36,7 +47,7 @@ jobs:
uses: docker/build-push-action@v2
with:
context: .
file: deployment/Dockerfile
file: deployment/Dockerfile # Use the correct path to Dockerfile
tags: user/repository:latest
push: true

Expand Down

0 comments on commit 818a85b

Please sign in to comment.