-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix tests and sync api generation
- Loading branch information
1 parent
942fd96
commit e076af9
Showing
11 changed files
with
6,093 additions
and
90 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# NOTE: This file is auto generated by OpenAPI Generator. | ||
# URL: https://openapi-generator.tech | ||
# | ||
# ref: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | ||
|
||
name: openfga_sdk Python package | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install flake8 pytest | ||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
if [ -f test-requirements.txt ]; then pip install -r test-requirements.txt; fi | ||
- name: Lint with flake8 | ||
run: | | ||
# stop the build if there are Python syntax errors or undefined names | ||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | ||
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | ||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | ||
- name: Test with pytest | ||
run: | | ||
pytest |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# coding: utf-8 | ||
|
||
# flake8: noqa | ||
""" | ||
Python SDK for OpenFGA | ||
API version: 0.1 | ||
Website: https://openfga.dev | ||
Documentation: https://openfga.dev/docs | ||
Support: https://discord.gg/8naAwJfWN6 | ||
License: [Apache-2.0](https://github.com/openfga/python-sdk/blob/main/LICENSE) | ||
NOTE: This file was auto generated by OpenAPI Generator (https://openapi-generator.tech). DO NOT EDIT. | ||
""" | ||
|
||
from openfga_sdk.sync.client.client import OpenFgaClient | ||
from openfga_sdk.sync.api_client import ApiClient | ||
|
||
from openfga_sdk.client.configuration import ClientConfiguration | ||
import openfga_sdk.configuration as configuration | ||
from openfga_sdk.configuration import Configuration | ||
|
||
from openfga_sdk.exceptions import OpenApiException | ||
from openfga_sdk.exceptions import FgaValidationException | ||
from openfga_sdk.exceptions import ApiValueError | ||
from openfga_sdk.exceptions import ApiAttributeError | ||
from openfga_sdk.exceptions import ApiKeyError | ||
from openfga_sdk.exceptions import ApiException | ||
from openfga_sdk.exceptions import NotFoundException | ||
from openfga_sdk.exceptions import UnauthorizedException | ||
from openfga_sdk.exceptions import ForbiddenException | ||
from openfga_sdk.exceptions import ServiceException | ||
from openfga_sdk.exceptions import ValidationException | ||
from openfga_sdk.exceptions import AuthenticationError | ||
from openfga_sdk.exceptions import RateLimitExceededError |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.