Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix PDP Setup (in CI and in general) #196

Merged
merged 3 commits into from
Oct 9, 2024
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
5 changes: 1 addition & 4 deletions .github/workflows/pdp_cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,8 @@ jobs:

- name: Run Pytests
run: |
export PYTHONPATH=$(pwd)
python -m pip install --upgrade pip
python setup.py install
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install ".[dev]"
pytest -s --cache-clear horizon/tests/

- name: Run E2E tests
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/pdp_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: PDP Sanity Tests

on:
pull_request:
push:
branches: [master, main, v*]

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: pre-commit/[email protected]

pytests:
runs-on: ubuntu-latest
steps:
- name: Python setup
uses: actions/setup-python@v5
with:
python-version: '3.11.8'

- name: Checkout code
uses: actions/checkout@v4

- name: Run Pytests
run: |
python -m pip install --upgrade pip
pip install ".[dev]"
pytest -s --cache-clear horizon/tests/
14 changes: 0 additions & 14 deletions .github/workflows/pre-commit.yml

This file was deleted.

Empty file added horizon/startup/__init__.py
Empty file.
Empty file added horizon/system/__init__.py
Empty file.
3 changes: 1 addition & 2 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
pytest
aioresponses
pytest-asyncio
aiohttp>=3.9.4,<4
aioresponses
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,7 @@ def get_data_files(root_directory: str):
include_package_data=True,
data_files=get_data_files("horizon/static"),
install_requires=get_requirements(),
# dev_requires=get_requirements("dev"),
extras_require={
"dev": get_requirements("dev"),
},
)
Loading