Skip to content

Commit

Permalink
Merge branch 'main' into wip/dev-2732-missing-context
Browse files Browse the repository at this point in the history
  • Loading branch information
jnussbaum authored Sep 30, 2023
2 parents af1af93 + fd259a3 commit 26358b4
Show file tree
Hide file tree
Showing 5 changed files with 276 additions and 12 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/pr-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---

name: PR Tests


on:
push:
branches-ignore:
- main


jobs:
pr-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v3

- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11

- name: Install poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Install Python dependencies
run: poetry install

- name: Linting with Pylint
run: poetry run pylint dsp_permissions_scripts tests

- name: Linting with mypy
run: poetry run mypy .

- name: unittests
run: poetry run python -m unittest discover tests


1 change: 1 addition & 0 deletions dsp_permissions_scripts/models/scope.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class PermissionScope(BaseModel):
A scope is an object encoding the information:
"Which user group gets which permissions on a resource/value?"
"""

CR: list[str | BuiltinGroup] = []
D: list[str | BuiltinGroup] = []
M: list[str | BuiltinGroup] = []
Expand Down
Loading

0 comments on commit 26358b4

Please sign in to comment.