-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Full OS matrix builds for unit and integration tests (Linux, Mac, Windows) #1460
Merged
Merged
Changes from all commits
Commits
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 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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,103 @@ | ||
name: integration-tests | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
paths-ignore: | ||
- '**/*.md' | ||
pull_request: | ||
branches: [ main ] | ||
paths-ignore: | ||
- '**/*.md' | ||
|
||
permissions: | ||
contents: read | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
example-counter: | ||
strategy: | ||
# Prioritize getting more information out of the workflow (even if something fails) | ||
fail-fast: false | ||
matrix: | ||
# Show OS combos first in GUI | ||
os: [ ubuntu-latest, windows-latest, macos-latest ] | ||
python-version: [ "3.8", "3.9", "3.10", "3.11" ] | ||
node-version: [ "16.x" ] | ||
|
||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- uses: ./.github/actions/setup_build_env | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
run-poetry-install: true | ||
create-venv-at-path: .venv | ||
|
||
- name: Clone Reflex Examples Repo | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: reflex-dev/reflex-examples | ||
path: reflex-examples | ||
|
||
- name: Install requirements for counter example | ||
working-directory: ./reflex-examples/counter | ||
run: | | ||
poetry run pip install -r requirements.txt | ||
- name: Init Website for counter example | ||
working-directory: ./reflex-examples/counter | ||
run: | | ||
poetry run reflex init --loglevel debug | ||
- name: Run Website and Check for errors | ||
run: | | ||
# Check that npm is home | ||
npm -v | ||
poetry run bash scripts/integration.sh ./reflex-examples/counter dev | ||
reflex-web: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# Show OS combos first in GUI | ||
os: [ ubuntu-latest, windows-latest, macos-latest ] | ||
python-version: [ "3.10", "3.11" ] | ||
node-version: [ "16.x" ] | ||
|
||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- uses: ./.github/actions/setup_build_env | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
run-poetry-install: true | ||
create-venv-at-path: .venv | ||
|
||
- name: Clone Reflex Website Repo | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: reflex-dev/reflex-web | ||
ref: reflex-ci | ||
path: reflex-web | ||
|
||
- name: Install Requirements for reflex-web | ||
working-directory: ./reflex-web | ||
run: poetry run pip install -r requirements.txt | ||
- name: Init Website for reflex-web | ||
working-directory: ./reflex-web | ||
run: poetry run reflex init | ||
- name: Run Website and Check for errors | ||
run: | | ||
# Check that npm is home | ||
npm -v | ||
poetry run bash scripts/integration.sh ./reflex-web prod |
This file was deleted.
Oops, something went wrong.
8 changes: 7 additions & 1 deletion
8
.github/workflows/reflex_init_test.yml → .../workflows/reflex_init_in_docker_test.yml
This file contains 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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's not run tests on docs.
If we need any linting on docs specifically, we should create a separate workflow with different trigger conditions (e.g. if *.md's changed, run "md-lint" workflow)