Skip to content

chore: bump version to 0.4.2 #229

chore: bump version to 0.4.2

chore: bump version to 0.4.2 #229

Workflow file for this run

name: Build Status
on:
push:
branches:
- '**'
pull_request:
branches:
- master
- develop
jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Display Python version
run: python --version
- name: Install dependencies (Python 3.8-3.11)
if: matrix.python-version == '3.8' || matrix.python-version == '3.9' || matrix.python-version == '3.10' || matrix.python-version == '3.11'
run: |
python -m pip install --upgrade pip
pip install --upgrade "flake8>=7.0.0" "importlib-metadata>=6.0.0" pytest "pytest-cov<5.0" "coverage<8.0"
pip install -r requirements.txt
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
- name: Install dependencies (Python 3.12+)
if: matrix.python-version == '3.12' || matrix.python-version == '3.13'
run: |
python -m pip install --upgrade pip
pip install ruff pytest "pytest-cov<5.0" "coverage<8.0"
pip install -r requirements.txt
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
- name: Run linting (flake8)
if: matrix.python-version == '3.8' || matrix.python-version == '3.9' || matrix.python-version == '3.10' || matrix.python-version == '3.11'
run: |
echo "Checking code style with flake8..."
python -m flake8 modi_plus tests --ignore E203,W503,W504,E501
- name: Run linting (ruff)
if: matrix.python-version == '3.12' || matrix.python-version == '3.13'
run: |
echo "Checking code style with ruff (Python 3.12+ compatible)..."
ruff check modi_plus tests --ignore E501
- name: Run unit tests with unittest
run: |
echo "Running unit tests with unittest..."
python -m unittest
- name: Run pytest tests (make test equivalent)
run: |
echo "Running pytest tests..."
python -m pytest tests/task/ tests/module/input_module/ tests/module/output_module/ -v