Skip to content

Commit

Permalink
wip7
Browse files Browse the repository at this point in the history
  • Loading branch information
EliMoshkovich committed Apr 11, 2024
1 parent 8a0bafb commit d91db22
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/pdp_cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,31 +43,31 @@ jobs:
cache-from: type=gha
cache-to: type=gha,mode=max

- uses: actions/checkout@v3
with:
repository: permitio/permit-backend
ref: main
path: './permit-backend'
token: ${{ secrets.CLONE_REPO_TOKEN }}
# - uses: actions/checkout@v3
# with:
# repository: permitio/permit-backend
# ref: main
# path: './permit-backend'
# token: ${{ secrets.CLONE_REPO_TOKEN }}

- name: Python setup
uses: actions/setup-python@v5
with:
python-version: '3.11.8'

- name: Run E2E tests
working-directory: ./permit-backend/proactive_tests/sidecar
run: |
pip install requests pydantic==1.8.2 docker
python sidecar_tester.py -k ${{ secrets.PERMIT_TESTS_TOKEN }} -u https://api.permit.io --no-v1 -2 permitio/pdp-v2:test --no-pull
# - name: Run E2E tests
# working-directory: ./permit-backend/proactive_tests/sidecar
# run: |
# pip install requests pydantic==1.8.2 docker
# python sidecar_tester.py -k ${{ secrets.PERMIT_TESTS_TOKEN }} -u https://api.permit.io --no-v1 -2 permitio/pdp-v2:test --no-pull

- name: Run Pytests
run: |
python -m pip install --upgrade pip
pip install flake8 pytest pytest-cov
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
if [ -f requirements.txt ]; then pip install -r --force-reinstall requirements.txt; fi
pytest -s --cache-clear --cov=app horizon/tests/ > pytest-coverage.txt
- name: Comment coverage
Expand Down

0 comments on commit d91db22

Please sign in to comment.