Fix deprecation warning in tests. #231
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI Runner | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Update system deps | |
run: sudo apt-get update | |
- name: Install system deps | |
run: sudo apt-get -y install libxmlsec1-dev pkg-config | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install poetry | |
python -m poetry install --extras "graphql" --extras "saml" | |
- name: Codestyle Checks | |
run: | | |
python -m poetry run ruff check | |
python -m poetry run ruff format --check | |
python -m poetry run vale README.md CONTRIBUTING.md | |
- name: Test with pytest | |
run: | | |
python -m poetry run pytest | |
- name: Dependency Check | |
run: | | |
python -m poetry run bandit -r fastapi_opa --exclude="fastapi_opa/example_oidc.py","fastapi_opa/example_saml.py" |