reflex/.github/workflows/integration_examples.yml

55 lines
1.5 KiB
YAML

name: integration-test-examples
on:
pull_request:
branches: [main]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
# Specify python/node versions to test against
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
node-version: ["16.x"]
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
shell: bash
create-venv-at-path: .venv
# Clone Reflex Website Repo For integration tests
- name: Clone Reflex Examples Repo
uses: actions/checkout@v3
with:
repository: pynecone-io/pynecone-examples
path: pynecone-examples
- name: Install requirements for counter example
working-directory: ./pynecone-examples/counter
run: poetry run pip install -r requirements.txt
- name: Reflex init for counter example
working-directory: ./pynecone-examples/counter
run: poetry run reflex init
- name: Validate Reflex's own installation of Node, following init
run: |
/home/runner/.reflex/.nvm/versions/node/v*/bin/npm -v
/home/runner/.reflex/.nvm/versions/node/v*/bin/node -v
- name: Check for errors
run: |
chmod +x ./scripts/integration.sh
./scripts/integration.sh ./pynecone-examples/counter dev