Skip to content

deps(deps): bump flask-admin in the batch-updates group (#21) #38

deps(deps): bump flask-admin in the batch-updates group (#21)

deps(deps): bump flask-admin in the batch-updates group (#21) #38

Workflow file for this run

name: Flask-mvc
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
permissions:
contents: read
jobs:
lint:
name: Lint & format
runs-on: ubuntu-latest
steps:
# actions/checkout@v5 (93cb6efe18208431cddfb8368fd83d5badbf9bfd)
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- name: Set up Python
# actions/setup-python@v5 (a26af69be951a213d495a4c3e4e4022e16d87065)
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
with:
python-version: "3.14"
cache: pip
cache-dependency-path: requirements-test.txt
- name: Install lint dependencies
run: |
python -m pip install --upgrade pip
pip install black ruff
- name: Format check (black)
run: black --check --diff .
- name: Lint (ruff)
run: ruff check .
test:
name: Tests & coverage
runs-on: ubuntu-latest
needs: lint
steps:
# actions/checkout@v5 (93cb6efe18208431cddfb8368fd83d5badbf9bfd)
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- name: Set up Python
# actions/setup-python@v5 (a26af69be951a213d495a4c3e4e4022e16d87065)
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
with:
python-version: "3.14"
cache: pip
cache-dependency-path: requirements-test.txt
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-test.txt
- name: Run tests with coverage
env:
SECRET_KEY: ${{ secrets.SECRET_KEY || 'ci-test-secret-key-not-for-production' }}
run: pytest tests/ -v --cov=project --cov-branch --cov-report=xml
- name: Upload coverage to Codecov
# codecov/codecov-action@v6 (57e3a136b779b570ffcdbf80b3bdc90e7fab3de2)
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml
fail_ci_if_error: false