-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Added initial integration test template. #152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
47f9bc6
Added initial integration test template.
cd9edb4
Added to every pr on main
fb114b3
Fixed repo clone
a4b3a44
Add other python versions
544c556
Add other python versions
21840bf
Fixing paths.
89a0d82
Fixing paths.
2dd9367
Fixing paths.
1e66c2e
Fixing paths.
6c1dd73
Cleaned up comamnds.
297c4f4
Cleaned up comamnds.
5c6dca0
Fixed version error.
8d7f1fa
Checking os path.
0e9b942
Checking os path.
b410e26
Checking os path.
9e2a657
Checking os path.
8f9bdc0
Testing path.
b4615b2
Testing path.
43c2b18
Switched working-directory and run.
978cd1d
Switched working-directory and run.
052d2c6
Seperate pc init and run
dfb3667
Stop the run after 60 seconds
d706bd0
Stop the run after 60 seconds
431c9a1
Stop the run after 60 seconds
1d4e690
Stop the run after 60 seconds
e600faa
Stop the run after 60 seconds
20c1ab7
Add a timeout of 1 min.
f05fd5b
Add a timeout of 1 min and not thrown an error after.
ae635bf
Add Python version only change on merge.
ca32eb7
Fixed pr comments.
10ed1fd
Changed name.
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,71 @@ | ||
| name: integration-test | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ "main" ] | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| 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"] | ||
|
|
||
| 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 Pynecone Website Repo | ||
| uses: actions/checkout@v3 | ||
| 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 | ||
| - name: Poetry Install | ||
| 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 | ||
| - name: Init Website | ||
| working-directory: ./pynecone-website/pcweb | ||
| run: poetry run pc init | ||
| - name: Run Website | ||
| working-directory: ./pynecone-website/pcweb | ||
| run: timeout 1m poetry run pc run || exit 0 | ||
Alek99 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.