
* lift node version restraint to allow more recent version if already installed * add node test for latest version * change python version * use purple for debug logs * update workflow * add playwright dev dependency * update workflow * change test * oops * improve test * update test * fix tests * mv units tests to a subfolder * reorganize tests * fix install * update test_state * revert node changes and only keep new tests organization * move integration tests in tests/integration * fix integration workflow * fix dockerfile workflow * fix dockerfile workflow 2 * fix shared_state
33 lines
985 B
YAML
33 lines
985 B
YAML
name: reflex-init-in-docker-test
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.id }}
|
|
cancel-in-progress: true
|
|
|
|
on:
|
|
push:
|
|
branches: ['main']
|
|
paths-ignore:
|
|
- '**/*.md'
|
|
pull_request:
|
|
branches: ['main']
|
|
paths-ignore:
|
|
- '**/*.md'
|
|
|
|
jobs:
|
|
# TODO we can extend to various starting points (e.g. Ubuntu with node, without node, with unzip, without unzip, etc.)
|
|
# Currently starting point is: Ubuntu + unzip, xz-utils, Python suite. No node.
|
|
reflex-install-and-init:
|
|
timeout-minutes: 30
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- shell: bash
|
|
run: |
|
|
# Run reflex init in a docker container
|
|
|
|
# cwd is repo root
|
|
docker build -f tests/integration/init-test/Dockerfile -t reflex-init-test tests/integration/init-test
|
|
docker run --rm -v $(pwd):/reflex-repo/ reflex-init-test /reflex-repo/tests/integration/init-test/in_docker_test_script.sh
|