chore: adding bumpversion configuration. #2
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: "Running tests: style, mypy, pytest" | |
on: [push, pull_request] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
name: Style, mypy, pytest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.9 | |
- name: Install Dependencies | |
run: pip install -e ".[dev, rdkit]" | |
- name: Install additional dependencies (for pydantic>2) | |
run: pip install pydantic_settings | |
- name: Check black | |
run: python -m black --check --diff --color . | |
- name: Check isort | |
run: python -m isort --check --diff . | |
- name: Check flake8 | |
run: python -m flake8 . | |
- name: Check mypy (on the package) | |
run: python -m mypy --namespace-packages -p rxn.availability | |
- name: Check mypy (on the tests) | |
run: python -m mypy tests | |
- name: Run pytests | |
run: python -m pytest -sv --cov=rxn.availability --cov-fail-under=60 |