Skip to content

Update CI workflow, enhance linting, and refactor tests #54

Update CI workflow, enhance linting, and refactor tests

Update CI workflow, enhance linting, and refactor tests #54

Workflow file for this run

name: Build Python Package
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements_dev.txt -e .
- name: Lint and coding style check with ruff
run: ruff check --output-format=github .
- name: Lint with flake8
run: flake8 broqer
- name: Static type checking
run: mypy broqer --no-strict-optional --disable-error-code type-var --disable-error-code call-arg
- name: Check Readme style
run: rstcheck README.rst
- name: Test with pytest
run: pytest