Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,16 @@ jobs:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r relay/requirements.txt
pip install -r relay/tests/requirements.txt
python -m pip install --upgrade pip setuptools wheel
pip install -r src/requirements.txt -r tests/requirements.txt .
- name: Run Black
run: black --check .
- name: Run Flake8
run: flake8 .
- name: Run isort
run: isort --check .
- name: Run tests and collect coverage
run: pytest --junitxml=junit/test-results.xml --cov=relay --cov-report=xml --cov-report=html
run: pytest --junitxml=junit/test-results.xml --cov=relay --cov=tests --cov-report=xml --cov-report=html
- name: Upload pytest test results
uses: actions/upload-artifact@v3
with:
Expand Down
8 changes: 4 additions & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ zip_safe = False
include_package_data = True
packages = find:
package_dir =
=relay
=src

[options.packages.find]
where = relay
where = src

[entry_points]
console_scripts =
relay = relay:main
relay = relay.relay:main

[tools:pytest]
testpaths = relay/tests
testpaths = tests
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 1 addition & 4 deletions relay/tests/test_relay.py → tests/test_relay.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import shutil
import subprocess
from subprocess import CompletedProcess
import sys
from typing import Any, Callable, IO, NamedTuple, Optional, Union

from _pytest.monkeypatch import MonkeyPatch
Expand All @@ -16,9 +15,7 @@
import humanize
import pytest

# This file is in a subdirectory, so add the CUT's location to the path
sys.path.append(str(Path(__file__).resolve().parent.parent.parent))
from relay import relay # noqa E402
from relay import relay


def mock_app_stub(
Expand Down