Skip to content

Merge branch 'misc_20240506' of github.com:bsdz/yabte into misc_20240506 #112

Merge branch 'misc_20240506' of github.com:bsdz/yabte into misc_20240506

Merge branch 'misc_20240506' of github.com:bsdz/yabte into misc_20240506 #112

Workflow file for this run

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