Skip to content

fix: restore policy guard compatibility #404

fix: restore policy guard compatibility

fix: restore policy guard compatibility #404

Workflow file for this run

name: Python CI
on:
push:
branches:
- "**"
workflow_dispatch:
pull_request:
branches:
- "**"
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
<<<<<<< HEAD

Check failure on line 20 in .github/workflows/python-ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/python-ci.yml

Invalid workflow file

You have an error in your yaml syntax on line 20
- name: Configure Python Path
run: |
echo "PYTHONPATH=$PWD:$PWD/src:$PWD/services:$PWD/services/guardian" >> $GITHUB_ENV
=======
>>>>>>> origin/main
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then
pip install -r requirements.txt
fi
pip install pytest pytest-cov
- name: Compile check
run: python -m compileall services
- name: Run tests
run: python -m pytest -v
- name: Coverage
run: python -m pytest --cov=services.guardian --cov-config=.coveragerc.guardian --cov-config=.coveragerc --cov-report=term-missing --cov-fail-under=0
- name: Configure Python Path
run: |
echo "PYTHONPATH=$PWD:$PWD/src:$PWD/services:$PWD/services/guardian" >> $GITHUB_ENV