Skip to content

BD-3407 upgrade python version to 3.10 was 3.8 #595

BD-3407 upgrade python version to 3.10 was 3.8

BD-3407 upgrade python version to 3.10 was 3.8 #595

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Python application
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
code-quality:
name: Code quality ${{ matrix.code_command }}
runs-on: ubuntu-latest
strategy:
matrix:
python_version: ['3.12']
code_command:
- flake8
- isort --check-only --diff
- black --check
- mypy
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python_version }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.python_version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip poetry
poetry install
- name: Run ${{ matrix.code_command }}
run: |
poetry run ${{ matrix.code_command }} .
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Docker build test image
run: |
docker compose build pytest
- name: Pip list
run: |
docker compose run pytest python -m pip list
- name: Test
run: |
docker compose run pytest