Skip to content

Commit

Permalink
plans + subscriptions redesign (#615)
Browse files Browse the repository at this point in the history
Co-authored-by: Timothy Ogbemudia <[email protected]>
Co-authored-by: mnida <[email protected]>
Co-authored-by: mnida <[email protected]>
Co-authored-by: Soham Parekh <[email protected]>
Co-authored-by: gitstart-lotus <[email protected]>
Co-authored-by: gitstart-lotus <[email protected]>
Co-authored-by: David Janda <[email protected]>
Co-authored-by: meehawk <[email protected]>
Co-authored-by: Soham Parekh <[email protected]>
  • Loading branch information
10 people authored Mar 15, 2023
1 parent 4906891 commit d214ac2
Show file tree
Hide file tree
Showing 153 changed files with 35,641 additions and 9,172 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/lint-and-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Lint and Prettier
on: [push]

jobs:
lint:
format-ts:
runs-on: ubuntu-latest

steps:
Expand All @@ -23,3 +23,19 @@ jobs:
# run: yarn lint
- name: Run Prettier
run: cd frontend/frontend && yarn pretty

format-py:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.9"

- name: Install dependencies
run: pip install black

- name: Run black
run: black backend/
1 change: 1 addition & 0 deletions .github/workflows/public_api_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ jobs:
KAFKA_URL: "localhost:9092"
PYTHONDONTWRITEBYTECODE: 1
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
SELF_HOSTED: "${{ secrets.SELF_HOSTED }}"

steps:
- uses: actions/checkout@v3
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:
DEBUG: False
KAFKA_URL: "localhost:9092"
PYTHONDONTWRITEBYTECODE: 1
SELF_HOSTED: "${{ secrets.SELF_HOSTED }}"

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -124,6 +125,26 @@ jobs:
env:
RETRY_DESCRIPTION: "Running Pytest"

- name: Test Pytest integrations
run: |
for i in 1 2 3; do
if pipenv run pytest -x -k "integrations"; then
export PYTEST_INTEGRATIONS_SUCCEEDED=true
break
else
export PYTEST_INTEGRATIONS_SUCCEEDED=false
fi
sleep 5s
done
if [[ "${PYTEST_INTEGRATIONS_SUCCEEDED}" == "true" ]]; then
echo "Pytest succeeded"
else
echo "Pytest failed"
exit 1
fi
env:
RETRY_DESCRIPTION: "Running Pytest Integrations"

- name: Test Setup Tasks
run: |
pipenv run python manage.py setup_tasks
11 changes: 10 additions & 1 deletion backend/.coveragerc
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
[run]
omit = */tests/*, */migrations/*, */management/*, */template_tags/*, */lotus/*, */manage.py, */model_backend.py
omit = */migrations/*, */management/*, */template_tags/*, */manage.py, */model_backend.py, */settings.py, */urls.py, */wsgi.py, */tests/*
include = metering_billing/*, api/*

[report]
show_missing = True
precision = 1
exclude_lines =
pragma: no cover
raise NotImplementedError
if __name__ == .__main__.:
Loading

0 comments on commit d214ac2

Please sign in to comment.