Bump flask from 3.1.2 to 3.1.3 #63
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths-ignore: | |
| - 'README.md' | |
| pull_request: | |
| branches: | |
| - master | |
| paths-ignore: | |
| - 'README.md' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| container: python:3.12-slim | |
| # Required services | |
| services: | |
| redis: | |
| image: redis:6-alpine | |
| options: >- | |
| --health-cmd "redis-cli ping" | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install pipenv | |
| pipenv install --system --dev | |
| - name: Linting | |
| run: | | |
| # stop the build if there are Python syntax errors or undefined names | |
| flake8 service tests --count --select=E9,F63,F7,F82 --show-source --statistics | |
| # check for complexity. The GitHub editor is 127 chars wide | |
| flake8 service tests --count --max-complexity=10 --max-line-length=127 --statistics | |
| # Run pylint on the service | |
| pylint service tests --max-line-length=127 | |
| - name: Run unit tests and generate a coverage report | |
| run: pytest --cov-report=xml | |
| env: | |
| DATABASE_URI: "redis://redis:6379/0" | |
| - name: Install packages for Codecov to work | |
| run: apt update && apt install -y git curl gpg | |
| - name: Upload coverage reports to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| slug: nyu-devops/lab-docker |