-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Full OS matrix builds for unit and integration tests (Linux, Mac, Win…
…dows) (#1460)
- Loading branch information
Showing
15 changed files
with
417 additions
and
386 deletions.
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.