Skip to content

Commit 05d53f9

Browse files
authored
Merge branch 'main' into autodesk-case-study
2 parents 96105d5 + 27dbce8 commit 05d53f9

File tree

370 files changed

+16716
-6752
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

370 files changed

+16716
-6752
lines changed

.codespellrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[codespell]
2+
skip = *.csv, *.json
3+
ignore-words-list = selectin

.github/workflows/CODEOWNERS

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# This is a comment.
2+
# Each line is a file pattern followed by one or more owners.
3+
4+
# These owners will be the default owners for everything in
5+
# the repo. Unless a later match takes precedence,
6+
# @global-owner1 and @global-owner2 will be requested for
7+
# review when someone opens a pull request.
8+
* @alek99 @tgberkeley
9+
10+
# In this example, @doctocat owns any files in the build/logs
11+
# directory at the root of the repository and any of its
12+
# subdirectories.
13+
/blog/ @tgberkeley
14+
/docs/ @alek99 @tgberkeley

.github/workflows/codespell.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: codespell
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
7+
jobs:
8+
codespell:
9+
name: Check for spelling errors
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v3
14+
- name: Codespell
15+
uses: codespell-project/actions-codespell@v2

.github/workflows/deploy-dev.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Deploy to dev
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
concurrency:
10+
group: deploy-dev
11+
cancel-in-progress: false
12+
13+
env:
14+
CP_WEB_URL: https://cloud.rxc.app/
15+
CP_BACKEND_URL: https://cloud-f188e2cd-51fb-4b29-b546-2ce4b9efc5d5.fly.dev/
16+
17+
jobs:
18+
deploy:
19+
name: Deploy to Reflex Cloud
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout code
23+
uses: actions/checkout@v3
24+
25+
- name: Set up Python
26+
uses: actions/setup-python@v4
27+
with:
28+
python-version: '3.12'
29+
30+
- name: Install Requirements
31+
run: pip install -r requirements.txt
32+
33+
- name: Update Reflex CLI
34+
run: pip install reflex-hosting-cli -U
35+
36+
- name: Deploy to Reflex
37+
id: deploy
38+
run: |
39+
reflex deploy --project ${{ secrets.DEV_PROJECT_ID }} --token ${{ secrets.DEV_TOKEN }} --no-interactive
40+
41+
42+
43+
44+

.github/workflows/deploy-prd.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Deploy to production
2+
3+
on:
4+
workflow_dispatch:
5+
# This allows manual triggering of the workflow
6+
7+
8+
concurrency:
9+
group: deploy-prod
10+
cancel-in-progress: false
11+
12+
env:
13+
FLY_API_TOKEN: ${{ secrets.PRD_FLY_API_TOKEN }}
14+
15+
jobs:
16+
deploy:
17+
name: Deploy to Reflex Cloud
18+
runs-on: ubuntu-latest
19+
environment: production
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@v3
23+
24+
- name: Set up Python
25+
uses: actions/setup-python@v4
26+
with:
27+
python-version: '3.12'
28+
29+
- name: Install Requirements
30+
run: pip install -r requirements.txt
31+
32+
- name: Update Reflex CLI
33+
run: pip install reflex-hosting-cli -U
34+
35+
- name: Deploy to Reflex
36+
id: deploy
37+
run: |
38+
reflex deploy --project ${{ secrets.PRD_PROJECT_ID }} --token ${{ secrets.PRD_TOKEN }} --no-interactive

.github/workflows/deploy-stg.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Deploy to staging
2+
3+
on:
4+
push:
5+
branches:
6+
- 'r/*'
7+
8+
concurrency:
9+
group: deploy-staging
10+
cancel-in-progress: false
11+
12+
env:
13+
FLY_API_TOKEN: ${{ secrets.STG_FLY_API_TOKEN }}
14+
CP_WEB_URL: https://cloud.reflexcorp.run/
15+
CP_BACKEND_URL: https://cloud-29f4f535-4fb8-48b9-8b55-2000f2782aee.fly.dev/
16+
17+
jobs:
18+
deploy:
19+
name: Deploy to Reflex Cloud
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout code
23+
uses: actions/checkout@v3
24+
25+
- name: Set up Python
26+
uses: actions/setup-python@v4
27+
with:
28+
python-version: '3.12'
29+
30+
- name: Install Requirements
31+
run: pip install -r requirements.txt
32+
33+
- name: Update Reflex CLI
34+
run: pip install reflex-hosting-cli -U
35+
36+
- name: Deploy to Reflex
37+
id: deploy
38+
run: |
39+
reflex deploy --project ${{ secrets.STG_PROJECT_ID }} --token ${{ secrets.STG_TOKEN }} --no-interactive

.github/workflows/repository_dispatch.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/workflows/unit_tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ env:
1111

1212
on:
1313
push:
14-
branches: ['main']
14+
branches: ["main"]
1515
pull_request:
16-
branches: ['main']
16+
branches: ["main"]
1717
workflow_dispatch:
1818
inputs:
1919
reflex_dep:
@@ -33,16 +33,16 @@ jobs:
3333
fail-fast: false
3434
matrix:
3535
os: [ubuntu-latest]
36-
python-version: ['3.11.5', '3.12.0']
36+
python-version: ["3.11.5", "3.12.0"]
3737
runs-on: ${{ matrix.os }}
3838
steps:
3939
- uses: actions/checkout@v4
4040
- name: Install Requirements for reflex-web and reflex
4141
run: |
42-
pip install '${{ github.event.inputs.reflex_dep || env.REFLEX_DEP }}' -r requirements.txt pytest playwright pytest-playwright
42+
pip install '${{ github.event.inputs.reflex_dep || env.REFLEX_DEP }}' -r requirements.txt pytest playwright pytest-playwright uvicorn
4343
playwright install --with-deps
4444
- name: Run unit tests
4545
run: |
4646
export PYTHONUNBUFFERED=1
4747
reflex init
48-
pytest tests
48+
pytest tests

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.states
12
**/*.db
23
**/*.pyc
34
**/*.swp
@@ -17,3 +18,4 @@ pcweb/whitelist.py
1718
pynecone.db
1819
reflex.db
1920
venv/
21+
.env

.trunk/.gitignore

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)