Add run_batch method. #111
This file contains 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: Push | |
on: [push] | |
jobs: | |
checks: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- os: ubuntu-latest | |
python-version: "3.10" | |
poetry-version: "1.3.1" | |
use-mypyc: true | |
- os: ubuntu-latest | |
python-version: "3.10" | |
poetry-version: "1.3.1" | |
use-mypyc: false | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install poetry | |
run: pipx install poetry==${{ matrix.poetry-version }} | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: "poetry" | |
- name: Install dependencies | |
run: poetry install --with dev | |
- if: ${{ matrix.use-mypyc }} | |
name: Build mypyc modules | |
run: poetry run python build.py --inplace | |
- name: Run tests with coverage | |
run: poetry run coverage run -m unittest | |
- name: Show coverage report | |
run: poetry run coverage report -m | |
- name: Run black | |
run: poetry run black . --check | |
- name: Run isort | |
run: poetry run isort . --check-only --profile black | |
- name: Run docformatter | |
run: poetry run docformatter . --recursive --check --diff --black --exclude _unittest_numpy_extensions.py | |
# - name: Run flake8 | |
# run: poetry run flake8 . | |
# - name: Run bandit | |
# run: poetry run bandit . | |
# - name: Run saftey | |
# run: poetry run safety check |