Skip to content

feat(jans-cedarling): update PolicyStore parser to support agama-lab generated policies #196

feat(jans-cedarling): update PolicyStore parser to support agama-lab generated policies

feat(jans-cedarling): update PolicyStore parser to support agama-lab generated policies #196

name: Cedarling Testcases
on:
pull_request:
branches:
- main
paths:
- "jans-cedarling/**"
permissions:
contents: read
jobs:
rust_tests:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1
with:
egress-policy: audit
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Run Tests
run: |
cd ./jans-cedarling
cargo test --workspace
- name: Run Clippy
run: |
cd ./jans-cedarling
cargo clippy -- -Dwarnings
python_tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11"]
steps:
- name: Harden Runner
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1
with:
egress-policy: audit
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install tox
- name: Test with pytest
run: |
cd ./jans-cedarling/bindings/cedarling_python
tox