Skip to content

Bump flask from 1.1.4 to 3.0 in /src/web #90

Bump flask from 1.1.4 to 3.0 in /src/web

Bump flask from 1.1.4 to 3.0 in /src/web #90

Workflow file for this run

name: CICD
on:
push:
branches:
- main
pull_request:
branches:
- "**"
workflow_dispatch:
inputs:
rewrite_dependencies:
description:
If "true" or empty CICD will rewrite BL_Python dependencies,\n
during the build only, to use the local filesystem checkout rather than PyPI.\n
If "false" CICD will not rewrite the BL_Python dependencies.
type: choice
options:
- true
- false
default: "true"
required: true
jobs:
All:
name: Build and test BL_Python
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
id: install_python
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Create Venv
run: |
${{ steps.install_python.outputs.python-path }} -m venv .github-venv
- name: Install dependencies
run: |
echo Setting up dependencies
python -m pip install -U pip
python -m pip install toml
REWRITE_DEPENDENCIES=${{ inputs.rewrite_dependencies }} \
./.github/workflows/CICD-scripts/pyproject_dependency_rewrite.py
source .github-venv/bin/activate
./install_all.sh -e
- name: Test with pyright
run: |
echo Running pyright
source .github-venv/bin/activate
pyright
- name: Test with pytest and generate reports
run: |
echo Running pytest
source .github-venv/bin/activate
pytest -k "not acceptance"
coverage html
- name: Output pytest report
uses: actions/upload-artifact@v3
with:
name: pytest-and-coverage-report
path: |
pytest.xml
cov.xml
.coverage
htmlcov/
retention-days: 1
if-no-files-found: error
- name: Check code style
run: |
source .github-venv/bin/activate
black --check src
- name: Check import order
run: |
source .github-venv/bin/activate
isort --check-only src