Skip to content

Commit

Permalink
Merge pull request #196 from permitio/roe/per-10888-fix-pdp-setup-in-…
Browse files Browse the repository at this point in the history
…ci-and-in-general

Fix PDP Setup (in CI and in general)
  • Loading branch information
roekatz authored Oct 9, 2024
2 parents 76e3eba + 81ad9cc commit baba618
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 21 deletions.
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"),
},
)

0 comments on commit baba618

Please sign in to comment.