Update CI workflow, enhance linting, and refactor tests #54
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |