-
Notifications
You must be signed in to change notification settings - Fork 3
32 lines (29 loc) · 940 Bytes
/
tests.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: "Running tests: style, mypy, pytest"
on: [push, pull_request]
jobs:
tests:
runs-on: ubuntu-latest
name: Style, mypy, pytest
strategy:
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: pip install -e .[dev,rdkit]
- 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.onmt_models
- name: Check mypy (on the tests)
run: python -m mypy tests
- name: Run pytests
run: python -m pytest