Skip to content

Update main.py

Update main.py #27

# precommit actions for fellows-experimental branch
name: test
on:
push:
branches:
- 'fellows-experimental'
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11"]
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: ./.github/actions/setup-python-env
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run Black.
uses: psf/black@stable
with:
options: "--check --verbose"
src: "./src/webapp"
version: "~= 22.0"
- name: Using pylint
run: |
pylint $(git ls-files './src/webapp/*.py') --errors-only
- name: Test with pytest
run: |
coverage run -m pytest -v -s ./src/webapp/
- name: Generate Coverage Report
run: |
coverage report -m