fix(workflows): Lints befores running tests to prevent waste of resources.

This commit is contained in:
Gustavo Rosa 2022-12-14 17:35:06 -03:00
Родитель c112f48a1f
Коммит d5981b7f6d
1 изменённых файлов: 6 добавлений и 6 удалений

12
.github/workflows/lint-run-tests.yaml поставляемый
Просмотреть файл

@ -37,12 +37,6 @@ jobs:
sudo apt install -y graphviz
python -m pip install --user -e .[tests]
python -m pip install graphviz
- name: Runs unitary tests
run: |
pytest tests
- name: Tests documentation notebooks
run: |
pytest --nbval-lax docs/basic_guide/discrete_search
- name: Finds Python syntax errors and undefined names
run: |
# Stops the build if there are Python syntax errors or undefined names
@ -51,3 +45,9 @@ jobs:
run: |
# Exit-zero treats all errors as warnings (GitHub editor is 127 chars wide)
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Runs unitary tests
run: |
pytest tests
- name: Tests documentation notebooks
run: |
pytest --nbval-lax docs/basic_guide/discrete_search