Skip to content

Commit

Permalink
Merge pull request #8 from roisol144/testing
Browse files Browse the repository at this point in the history
Flake8 linter added as part of the action
  • Loading branch information
roisol144 authored Oct 10, 2024
2 parents 2c785ca + aff6fa2 commit 3c8e38c
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,23 +47,24 @@ jobs:
# Install docker-compose
- name: Install docker-compose
run: |
python -m venv venv
sudo apt-get update
sudo apt-get install -y docker-compose
# Install dependencies
- name: Install dependencies
run: |
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
# Run tests inside Docker
- name: Run unit tests
# Install Flake8
- name: Install Flake8
run: |
docker-compose up --build # Start services
sleep 10 # Wait for services to initialize
docker-compose exec app pytest --disable-warnings --maxfail=5
python -m venv venv
source venv/bin/activate
pip install flake8
- name: Lint with Flake8
run: |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
source venv/bin/activate
flake8 . --exclude=venv --count --select=E9,F63,F7,F82 --show-source --statistics

0 comments on commit 3c8e38c

Please sign in to comment.