From 47f9bc657a4b94448031d4c52672842fad7a094d Mon Sep 17 00:00:00 2001 From: Alek Petuskey Date: Tue, 20 Dec 2022 14:34:25 -0800 Subject: [PATCH 01/31] Added initial integration test template. --- .github/workflows/integration.yml | 64 +++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 .github/workflows/integration.yml diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml new file mode 100644 index 0000000000..f63b798d2c --- /dev/null +++ b/.github/workflows/integration.yml @@ -0,0 +1,64 @@ +name: build + +on: + push: + branches: [ "main" ] + +permissions: + contents: read + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] + node-version: [15.x] + + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + # Clone Pynecone Website Repo For integration tests + - name: Clone supercharge docs repository + uses: actions/checkout@v2 + with: + repository: pynecone-io/pynecone-website + path: pynecone-website + + # Install poetry + - name: cache poetry install + uses: actions/cache@v2 + with: + path: ~/.local + key: python-${{ matrix.python-version }}-poetry-1.3.1 + + - uses: snok/install-poetry@v1 + with: + version: 1.3.1 + virtualenvs-create: true + virtualenvs-in-project: true + + - name: cache deps + id: cache-deps + uses: actions/cache@v2 + with: + path: .venv + key: python-${{ matrix.python-version }}-pydeps-${{ hashFiles('**/poetry.lock') }} + + # Begin the integration test + - run: poetry install --no-interaction --no-root + if: steps.cache-deps.outputs.cache-hit != 'true' + - run: poetry install --no-interaction + - run: cd pynecone-website/pcweb + - run: poetry run pip install -r requirements.txt + - run: poetry run pc init + - run: poetry run pc run From cd9edb4c6af2f6eabac16b54bec5252177864006 Mon Sep 17 00:00:00 2001 From: Alek Petuskey Date: Tue, 20 Dec 2022 16:27:40 -0800 Subject: [PATCH 02/31] Added to every pr on main --- .github/workflows/integration.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index f63b798d2c..faeb6c9dcc 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -1,8 +1,10 @@ -name: build +name: integration-test on: push: branches: [ "main" ] + pull_request: + branches: [ "main" ] permissions: contents: read @@ -10,11 +12,13 @@ permissions: jobs: build: runs-on: ubuntu-latest + + # Specify python/node versions to test against strategy: matrix: python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] - node-version: [15.x] - + node-version: ["15.x"] + steps: - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} @@ -28,7 +32,7 @@ jobs: python-version: ${{ matrix.python-version }} # Clone Pynecone Website Repo For integration tests - - name: Clone supercharge docs repository + - name: Clone Pynecone Website Repo uses: actions/checkout@v2 with: repository: pynecone-io/pynecone-website From fb114b3ccac1fd76a53f7eb7c5bccddb7c5774cd Mon Sep 17 00:00:00 2001 From: Alek Petuskey Date: Tue, 20 Dec 2022 16:32:40 -0800 Subject: [PATCH 03/31] Fixed repo clone --- .github/workflows/integration.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index faeb6c9dcc..951803979d 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -16,7 +16,7 @@ jobs: # Specify python/node versions to test against strategy: matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] + python-version: ["3.11"] node-version: ["15.x"] steps: @@ -33,7 +33,6 @@ jobs: # Clone Pynecone Website Repo For integration tests - name: Clone Pynecone Website Repo - uses: actions/checkout@v2 with: repository: pynecone-io/pynecone-website path: pynecone-website From a4b3a44b93f60adcd72c5b0da6797155c35ee54a Mon Sep 17 00:00:00 2001 From: Alek Petuskey Date: Tue, 20 Dec 2022 16:34:41 -0800 Subject: [PATCH 04/31] Add other python versions --- .github/workflows/integration.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 951803979d..3f7812e344 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -16,7 +16,7 @@ jobs: # Specify python/node versions to test against strategy: matrix: - python-version: ["3.11"] + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] node-version: ["15.x"] steps: From 544c556acd5949fe7bde05d1f0b70269c87becff Mon Sep 17 00:00:00 2001 From: Alek Petuskey Date: Tue, 20 Dec 2022 16:39:14 -0800 Subject: [PATCH 05/31] Add other python versions --- .github/workflows/integration.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 3f7812e344..23dd5451ad 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -1,4 +1,4 @@ -name: integration-test +name: integration on: push: @@ -33,6 +33,7 @@ jobs: # Clone Pynecone Website Repo For integration tests - name: Clone Pynecone Website Repo + uses: actions/checkout@v3 with: repository: pynecone-io/pynecone-website path: pynecone-website From 21840bf596de196c291ea04af7d963352b9eeed8 Mon Sep 17 00:00:00 2001 From: Alek Petuskey Date: Tue, 20 Dec 2022 16:49:52 -0800 Subject: [PATCH 06/31] Fixing paths. --- .github/workflows/integration.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 23dd5451ad..45be8fa003 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -62,7 +62,9 @@ jobs: - run: poetry install --no-interaction --no-root if: steps.cache-deps.outputs.cache-hit != 'true' - run: poetry install --no-interaction + - run: ls - run: cd pynecone-website/pcweb + - run: ls - run: poetry run pip install -r requirements.txt - run: poetry run pc init - run: poetry run pc run From 89a0d8213cb4497ca24f34614f8b14c3f59f77ee Mon Sep 17 00:00:00 2001 From: Alek Petuskey Date: Tue, 20 Dec 2022 16:51:39 -0800 Subject: [PATCH 07/31] Fixing paths. --- .github/workflows/integration.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 45be8fa003..65bd11378c 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -63,8 +63,9 @@ jobs: if: steps.cache-deps.outputs.cache-hit != 'true' - run: poetry install --no-interaction - run: ls - - run: cd pynecone-website/pcweb + - run: cd pynecone-website - run: ls + - run: cd pcweb - run: poetry run pip install -r requirements.txt - run: poetry run pc init - run: poetry run pc run From 2dd9367e7e7875c560e9b4944471ee91d7058d25 Mon Sep 17 00:00:00 2001 From: Alek Petuskey Date: Tue, 20 Dec 2022 17:01:25 -0800 Subject: [PATCH 08/31] Fixing paths. --- .github/workflows/integration.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 65bd11378c..81331b874d 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -62,10 +62,9 @@ jobs: - run: poetry install --no-interaction --no-root if: steps.cache-deps.outputs.cache-hit != 'true' - run: poetry install --no-interaction - - run: ls - - run: cd pynecone-website - - run: ls - - run: cd pcweb + working-directory: ./pynecone-website/pcweb - run: poetry run pip install -r requirements.txt + working-directory: ./pynecone-website/pcweb - run: poetry run pc init + working-directory: ./pynecone-website/pcweb - run: poetry run pc run From 1e66c2efaf8924f271e0deca3a39a7df4234cd7c Mon Sep 17 00:00:00 2001 From: Alek Petuskey Date: Tue, 20 Dec 2022 17:03:55 -0800 Subject: [PATCH 09/31] Fixing paths. --- .github/workflows/integration.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 81331b874d..41a530b20a 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -16,7 +16,7 @@ jobs: # Specify python/node versions to test against strategy: matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] + python-version: ["3.10"] node-version: ["15.x"] steps: From 6c1dd73d304d0b99ac7087f1f05b5c2f81868fde Mon Sep 17 00:00:00 2001 From: Alek Petuskey Date: Tue, 20 Dec 2022 17:08:18 -0800 Subject: [PATCH 10/31] Cleaned up comamnds. --- .github/workflows/integration.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 41a530b20a..2110bcd0ae 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -62,9 +62,9 @@ jobs: - run: poetry install --no-interaction --no-root if: steps.cache-deps.outputs.cache-hit != 'true' - run: poetry install --no-interaction + - name: Install Pynecone Website Requirements working-directory: ./pynecone-website/pcweb - - run: poetry run pip install -r requirements.txt + run: poetry run pip install -r requirements.txt + - name: Install Pynecone and Run Tests working-directory: ./pynecone-website/pcweb - - run: poetry run pc init - working-directory: ./pynecone-website/pcweb - - run: poetry run pc run + run: poetry run pc init | poetry run pc run From 297c4f4c7a19d81a72b8650812c6d6b17b009792 Mon Sep 17 00:00:00 2001 From: Alek Petuskey Date: Tue, 20 Dec 2022 17:16:28 -0800 Subject: [PATCH 11/31] Cleaned up comamnds. --- .github/workflows/integration.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 2110bcd0ae..25a0f4add5 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -16,7 +16,7 @@ jobs: # Specify python/node versions to test against strategy: matrix: - python-version: ["3.10"] + python-version: ["3.10",==] node-version: ["15.x"] steps: @@ -62,9 +62,11 @@ jobs: - run: poetry install --no-interaction --no-root if: steps.cache-deps.outputs.cache-hit != 'true' - run: poetry install --no-interaction - - name: Install Pynecone Website Requirements working-directory: ./pynecone-website/pcweb - run: poetry run pip install -r requirements.txt - - name: Install Pynecone and Run Tests + - run: poetry run pip install -r requirements.txt working-directory: ./pynecone-website/pcweb - run: poetry run pc init | poetry run pc run + - run: poetry run pc init + working-directory: ./pynecone-website/pcweb + - run: ls -a + working-directory: ./pynecone-website/pcweb + - run: poetry run pc run From 5c6dca04c3db5c43c181fa9f0e0545f9c8c250af Mon Sep 17 00:00:00 2001 From: Alek Petuskey Date: Tue, 20 Dec 2022 17:17:27 -0800 Subject: [PATCH 12/31] Fixed version error. --- .github/workflows/integration.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 25a0f4add5..f365481fae 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -16,7 +16,7 @@ jobs: # Specify python/node versions to test against strategy: matrix: - python-version: ["3.10",==] + python-version: ["3.10"] node-version: ["15.x"] steps: From 8d7f1fa58b265221ed4b91736b2b66d897f6c73b Mon Sep 17 00:00:00 2001 From: Alek Petuskey Date: Tue, 20 Dec 2022 17:48:46 -0800 Subject: [PATCH 13/31] Checking os path. --- pynecone/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pynecone/utils.py b/pynecone/utils.py index 32bc931577..e0b08a85ac 100644 --- a/pynecone/utils.py +++ b/pynecone/utils.py @@ -402,6 +402,8 @@ def is_initialized() -> bool: Returns: Whether the app is initialized in the current directory. """ + print(constants.CONFIG_FILE) + print(constants.WEB_DIR) return os.path.exists(constants.CONFIG_FILE) and os.path.exists(constants.WEB_DIR) From 0e9b942a3b68876fb6817bdfb62f228199fe234a Mon Sep 17 00:00:00 2001 From: Alek Petuskey Date: Tue, 20 Dec 2022 17:53:04 -0800 Subject: [PATCH 14/31] Checking os path. --- pynecone/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pynecone/utils.py b/pynecone/utils.py index e0b08a85ac..a3a10d68f3 100644 --- a/pynecone/utils.py +++ b/pynecone/utils.py @@ -402,8 +402,8 @@ def is_initialized() -> bool: Returns: Whether the app is initialized in the current directory. """ - print(constants.CONFIG_FILE) - print(constants.WEB_DIR) + print(os.path.exists(constants.CONFIG_FILE), constants.CONFIG_FILE) + print(os.path.exists(constants.WEB_DIR), constants.WEB_DIR) return os.path.exists(constants.CONFIG_FILE) and os.path.exists(constants.WEB_DIR) From b410e26369cd503fc6b249dd292d29d69556d311 Mon Sep 17 00:00:00 2001 From: Alek Petuskey Date: Tue, 20 Dec 2022 18:01:52 -0800 Subject: [PATCH 15/31] Checking os path. --- pynecone/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pynecone/utils.py b/pynecone/utils.py index a3a10d68f3..7c5551f5a2 100644 --- a/pynecone/utils.py +++ b/pynecone/utils.py @@ -402,6 +402,7 @@ def is_initialized() -> bool: Returns: Whether the app is initialized in the current directory. """ + print(os.getcwd()) print(os.path.exists(constants.CONFIG_FILE), constants.CONFIG_FILE) print(os.path.exists(constants.WEB_DIR), constants.WEB_DIR) return os.path.exists(constants.CONFIG_FILE) and os.path.exists(constants.WEB_DIR) From 9e2a65780827891c5e17e066ba779c088ccdbcc5 Mon Sep 17 00:00:00 2001 From: Alek Petuskey Date: Tue, 20 Dec 2022 18:20:55 -0800 Subject: [PATCH 16/31] Checking os path. --- pynecone/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pynecone/utils.py b/pynecone/utils.py index 7c5551f5a2..5c6d8777d2 100644 --- a/pynecone/utils.py +++ b/pynecone/utils.py @@ -403,6 +403,7 @@ def is_initialized() -> bool: Whether the app is initialized in the current directory. """ print(os.getcwd()) + print(os.listdir()) print(os.path.exists(constants.CONFIG_FILE), constants.CONFIG_FILE) print(os.path.exists(constants.WEB_DIR), constants.WEB_DIR) return os.path.exists(constants.CONFIG_FILE) and os.path.exists(constants.WEB_DIR) From 8f9bdc0ff7fcd9e2bfd674f22cf5be3a9bedf449 Mon Sep 17 00:00:00 2001 From: Alek Petuskey Date: Tue, 20 Dec 2022 19:10:15 -0800 Subject: [PATCH 17/31] Testing path. --- .github/workflows/integration.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index f365481fae..135ee4305d 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -61,10 +61,13 @@ jobs: # Begin the integration test - run: poetry install --no-interaction --no-root if: steps.cache-deps.outputs.cache-hit != 'true' + - run: ls -a - run: poetry install --no-interaction working-directory: ./pynecone-website/pcweb - run: poetry run pip install -r requirements.txt + - run: ls -a working-directory: ./pynecone-website/pcweb + - run: ls -a - run: poetry run pc init working-directory: ./pynecone-website/pcweb - run: ls -a From b4615b2501ef3c13d748cc592d0b3acdec645b07 Mon Sep 17 00:00:00 2001 From: Alek Petuskey Date: Tue, 20 Dec 2022 21:18:31 -0800 Subject: [PATCH 18/31] Testing path. --- .github/workflows/integration.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 135ee4305d..eccb3831fc 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -61,15 +61,10 @@ jobs: # Begin the integration test - run: poetry install --no-interaction --no-root if: steps.cache-deps.outputs.cache-hit != 'true' - - run: ls -a + - run: ls -R - run: poetry install --no-interaction working-directory: ./pynecone-website/pcweb - run: poetry run pip install -r requirements.txt - run: ls -a working-directory: ./pynecone-website/pcweb - - run: ls -a - - run: poetry run pc init - working-directory: ./pynecone-website/pcweb - - run: ls -a - working-directory: ./pynecone-website/pcweb - - run: poetry run pc run + - run: poetry run pc init | poetry run pc run From 43c2b18f90e76dcd33e9ee4eb4e60ca3def07f3c Mon Sep 17 00:00:00 2001 From: Alek Petuskey Date: Tue, 20 Dec 2022 21:26:02 -0800 Subject: [PATCH 19/31] Switched working-directory and run. --- .github/workflows/integration.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index eccb3831fc..8f5f51a6fd 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -62,9 +62,12 @@ jobs: - run: poetry install --no-interaction --no-root if: steps.cache-deps.outputs.cache-hit != 'true' - run: ls -R - - run: poetry install --no-interaction + - name: Poetry Install + working-directory: ./pynecone-website/pcweb + run: poetry install --no-interaction + - name: Install Requirements working-directory: ./pynecone-website/pcweb - run: poetry run pip install -r requirements.txt - - run: ls -a + - name: Init and Run Pynecone Website working-directory: ./pynecone-website/pcweb - - run: poetry run pc init | poetry run pc run + run: poetry run pc init | poetry run pc run From 978cd1dd2f3aee074a3ef5983ce9c427229dcd33 Mon Sep 17 00:00:00 2001 From: Alek Petuskey Date: Tue, 20 Dec 2022 21:26:39 -0800 Subject: [PATCH 20/31] Switched working-directory and run. --- .github/workflows/integration.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 8f5f51a6fd..7cd50ec206 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -67,7 +67,7 @@ jobs: run: poetry install --no-interaction - name: Install Requirements working-directory: ./pynecone-website/pcweb - - run: poetry run pip install -r requirements.txt + run: poetry run pip install -r requirements.txt - name: Init and Run Pynecone Website working-directory: ./pynecone-website/pcweb run: poetry run pc init | poetry run pc run From 052d2c6c9b7500ebd6c09c48ff257f0cdff59649 Mon Sep 17 00:00:00 2001 From: Alek Petuskey Date: Tue, 20 Dec 2022 21:30:39 -0800 Subject: [PATCH 21/31] Seperate pc init and run --- .github/workflows/integration.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 7cd50ec206..98e1038a33 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -68,6 +68,9 @@ jobs: - name: Install Requirements working-directory: ./pynecone-website/pcweb run: poetry run pip install -r requirements.txt - - name: Init and Run Pynecone Website + - name: Init Website working-directory: ./pynecone-website/pcweb - run: poetry run pc init | poetry run pc run + run: poetry run pc init + - name: Run Website + working-directory: ./pynecone-website/pcweb + run: poetry run pc run From dfb36671f74eecf27bf3d3f8be844aec3f500610 Mon Sep 17 00:00:00 2001 From: Alek Petuskey Date: Tue, 20 Dec 2022 21:45:43 -0800 Subject: [PATCH 22/31] Stop the run after 60 seconds --- .github/workflows/integration.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 98e1038a33..83caafd1bf 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -73,4 +73,8 @@ jobs: run: poetry run pc init - name: Run Website working-directory: ./pynecone-website/pcweb - run: poetry run pc run + run: | + poetry run pc run & + pid=$! + sleep 60 + kill $pid \ No newline at end of file From d706bd0faf94133a79955f590ffc47789fdcc7fd Mon Sep 17 00:00:00 2001 From: Alek Petuskey Date: Tue, 20 Dec 2022 21:47:32 -0800 Subject: [PATCH 23/31] Stop the run after 60 seconds --- .github/workflows/integration.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 83caafd1bf..4595f00e03 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -1,4 +1,4 @@ -name: integration +name: integration-test on: push: From 431c9a1aea8eb199fd8618a1ad766352493cb1e7 Mon Sep 17 00:00:00 2001 From: Alek Petuskey Date: Tue, 20 Dec 2022 21:51:16 -0800 Subject: [PATCH 24/31] Stop the run after 60 seconds --- .github/workflows/integration.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 4595f00e03..0b65c60254 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -1,4 +1,4 @@ -name: integration-test +name: integrations on: push: From 1d4e690b0bf39053cea7256cd3f69ed82ca595bc Mon Sep 17 00:00:00 2001 From: Alek Petuskey Date: Tue, 20 Dec 2022 21:54:45 -0800 Subject: [PATCH 25/31] Stop the run after 60 seconds --- pynecone/utils.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pynecone/utils.py b/pynecone/utils.py index 5c6d8777d2..32bc931577 100644 --- a/pynecone/utils.py +++ b/pynecone/utils.py @@ -402,10 +402,6 @@ def is_initialized() -> bool: Returns: Whether the app is initialized in the current directory. """ - print(os.getcwd()) - print(os.listdir()) - print(os.path.exists(constants.CONFIG_FILE), constants.CONFIG_FILE) - print(os.path.exists(constants.WEB_DIR), constants.WEB_DIR) return os.path.exists(constants.CONFIG_FILE) and os.path.exists(constants.WEB_DIR) From e600faa5ea251946cd34e7b47852820951a253b9 Mon Sep 17 00:00:00 2001 From: Alek Petuskey Date: Tue, 20 Dec 2022 21:56:03 -0800 Subject: [PATCH 26/31] Stop the run after 60 seconds --- .github/workflows/integration.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 0b65c60254..0492b038d8 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -73,8 +73,4 @@ jobs: run: poetry run pc init - name: Run Website working-directory: ./pynecone-website/pcweb - run: | - poetry run pc run & - pid=$! - sleep 60 - kill $pid \ No newline at end of file + run: poetry run pc run \ No newline at end of file From 20c1ab778d6fd394a5cda687b8436954c8057041 Mon Sep 17 00:00:00 2001 From: Alek Petuskey Date: Tue, 20 Dec 2022 22:00:31 -0800 Subject: [PATCH 27/31] Add a timeout of 1 min. --- .github/workflows/integration.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 0492b038d8..d98a02eee3 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -73,4 +73,4 @@ jobs: run: poetry run pc init - name: Run Website working-directory: ./pynecone-website/pcweb - run: poetry run pc run \ No newline at end of file + run: timeout 1m poetry run pc run \ No newline at end of file From f05fd5b523d45119a1056388bf63665e01ff8705 Mon Sep 17 00:00:00 2001 From: Alek Petuskey Date: Tue, 20 Dec 2022 22:04:54 -0800 Subject: [PATCH 28/31] Add a timeout of 1 min and not thrown an error after. --- .github/workflows/integration.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index d98a02eee3..596c827f61 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -73,4 +73,4 @@ jobs: run: poetry run pc init - name: Run Website working-directory: ./pynecone-website/pcweb - run: timeout 1m poetry run pc run \ No newline at end of file + run: timeout 1m poetry run pc run || exit 0 \ No newline at end of file From ae635bf069617b2b5e15ca16ecadc29c220c6c91 Mon Sep 17 00:00:00 2001 From: Alek Petuskey Date: Tue, 20 Dec 2022 22:10:22 -0800 Subject: [PATCH 29/31] Add Python version only change on merge. --- .github/workflows/integration.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 596c827f61..e30618afd2 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -3,8 +3,6 @@ name: integrations on: push: branches: [ "main" ] - pull_request: - branches: [ "main" ] permissions: contents: read @@ -16,7 +14,7 @@ jobs: # Specify python/node versions to test against strategy: matrix: - python-version: ["3.10"] + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] node-version: ["15.x"] steps: From ca32eb7351875a12c04da46dbc0753c80eebb534 Mon Sep 17 00:00:00 2001 From: Alek Petuskey Date: Tue, 20 Dec 2022 22:21:53 -0800 Subject: [PATCH 30/31] Fixed pr comments. --- .github/workflows/integration.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index e30618afd2..65b5ce625c 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -57,12 +57,9 @@ jobs: key: python-${{ matrix.python-version }}-pydeps-${{ hashFiles('**/poetry.lock') }} # Begin the integration test - - run: poetry install --no-interaction --no-root - if: steps.cache-deps.outputs.cache-hit != 'true' - - run: ls -R - name: Poetry Install - working-directory: ./pynecone-website/pcweb - run: poetry install --no-interaction + run: poetry install --no-interaction --no-root + if: steps.cache-deps.outputs.cache-hit != 'true' - name: Install Requirements working-directory: ./pynecone-website/pcweb run: poetry run pip install -r requirements.txt From 10ed1fd6e129015d7410c581ae75ba7f820b6af4 Mon Sep 17 00:00:00 2001 From: Alek Petuskey Date: Tue, 20 Dec 2022 22:22:23 -0800 Subject: [PATCH 31/31] Changed name. --- .github/workflows/integration.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 65b5ce625c..f60a738c01 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -1,4 +1,4 @@ -name: integrations +name: integration-test on: push: