Skip to content

Commit

Permalink
removed plugins' tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarrosop committed Apr 10, 2020
1 parent 6b97f86 commit 09718c5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 58 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ jobs:
python-version: ${{ matrix.python-version }}
architecture: x64

- name: Start containers
run: docker-compose up -d

- name: Install Poetry
uses: dschep/[email protected]

Expand Down
19 changes: 9 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,11 @@ DOCKER_COMPOSE_FILE=docker-compose.yaml
DOCKER_COMPOSE=PYTHON=${PYTHON} docker-compose -f ${DOCKER_COMPOSE_FILE}
NORNIR_DIRS=nornir tests docs

.PHONY: start_dev_env
start_dev_env:
${DOCKER_COMPOSE} \
up -d
PYTHON:=3.7

.PHONY: stop_dev_env
stop_dev_env:
${DOCKER_COMPOSE} \
down
.PHONY: docker
docker:
docker build --build-arg PYTHON=$(PYTHON) -t nornir-dev:latest -f Dockerfile .

.PHONY: pytest
pytest:
Expand All @@ -36,10 +32,13 @@ mypy:
.PHONY: nbval
nbval:
poetry run pytest --nbval --sanitize-with docs/nbval_sanitize.cfg \
docs/plugins \
docs/howto \
docs/tutorials/intro/initializing_nornir.ipynb \
docs/tutorials/intro/inventory.ipynb

.PHONY: tests
tests: stop_dev_env start_dev_env black sphinx pylama mypy nbval pytest
tests: black sphinx pylama mypy nbval pytest

.PHONY: docker-tests
docker-tests: docker
docker run --name nornir-tests --rm nornir-dev:latest make tests
45 changes: 0 additions & 45 deletions docker-compose.yaml

This file was deleted.

0 comments on commit 09718c5

Please sign in to comment.