Skip to content

Commit

Permalink
python version
Browse files Browse the repository at this point in the history
  • Loading branch information
Nina Bernick committed May 31, 2024
1 parent 35aa83b commit 17c9091
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: "Set up Python"
uses: actions/setup-python@v2
with:
python-version: '3.8'
python-version: '3.11'
- name: "Install poetry"
run: |
python -m pip install --no-cache-dir poetry==1.8 supervisor
Expand Down
31 changes: 31 additions & 0 deletions test_app/tmp/notes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# tail docker container logs
docker compose logs -f dev-app

libraries:
- pydantic -- object validation
- alembic
- cerbos -- multilanguage general purpose authorization enforcement framework
- strawberry -- most popular GraphQL framework
- sqlalchemy -- most popular ORM in python
- mypy
- FastAPI
- pytest -- dependency injected test framework

normally mounts to 9009
debug session mounts to 9008 -- only one at a time


schema changes:
- update YAML
- make codegen --> generate types
- make alembic-autogenerate --> generate migration
- make alembic-upgrade-head --> run migration


cerbos
derived_roles_common: aware of different roles
policies/sample.yaml: rules of what different roles can do for each action

pytest
can generate fixtures
conftest.py will automatically load from each directory, tests in any lower directory have access to fixtures

0 comments on commit 17c9091

Please sign in to comment.