зеркало из https://github.com/microsoft/archai.git
tests(ds): adds tutorial notebooks to tests pipeline
This commit is contained in:
Родитель
a6b8d81627
Коммит
b3ac49d41f
|
@ -1,7 +1,7 @@
|
|||
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
|
||||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
|
||||
|
||||
name: Runs linter and tests
|
||||
name: Run Tests
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
|
@ -28,12 +28,15 @@ jobs:
|
|||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install flake8 pytest
|
||||
python -m pip install flake8 pytest nbval
|
||||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
||||
python -m pip install .
|
||||
- name: Runs tests
|
||||
run: |
|
||||
pytest tests
|
||||
- name: Runs tests for notebook examples
|
||||
run: |
|
||||
pytest --nbval-lax docs/basic_guide/discrete_search
|
||||
- name: Catches Python syntax errors and undefined names
|
||||
run: |
|
||||
# stop the build if there are Python syntax errors or undefined names
|
Загрузка…
Ссылка в новой задаче